summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/s3c-hsudc.c
diff options
context:
space:
mode:
authorHeiko Stübner <heiko@sntech.de>2011-12-19 19:40:28 +0100
committerFelipe Balbi <balbi@ti.com>2011-12-21 13:24:38 +0200
commite9bcb9e5feb0f5d1ccf155b6ca9e1b8f7147f0d6 (patch)
tree078d4c4932bea0cad2b40c07c3b7f3094e853365 /drivers/usb/gadget/s3c-hsudc.c
parenta1977562718f62c26cff79317b63885394255a03 (diff)
usb: gadget: s3c-hsudc: add missing otg_put_transceiver in probe
The number of get and put calls should always be equal. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/s3c-hsudc.c')
-rw-r--r--drivers/usb/gadget/s3c-hsudc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/gadget/s3c-hsudc.c b/drivers/usb/gadget/s3c-hsudc.c
index fdf7774eacb..a6a789a0509 100644
--- a/drivers/usb/gadget/s3c-hsudc.c
+++ b/drivers/usb/gadget/s3c-hsudc.c
@@ -1366,6 +1366,9 @@ err_remap:
kfree(hsudc->mem_rsrc);
err_res:
+ if (hsudc->transceiver)
+ otg_put_transceiver(hsudc->transceiver);
+
kfree(hsudc);
return ret;
}