diff options
author | Heiko Stübner <heiko@sntech.de> | 2011-12-19 13:40:28 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-12-21 06:24:38 -0500 |
commit | e9bcb9e5feb0f5d1ccf155b6ca9e1b8f7147f0d6 (patch) | |
tree | 078d4c4932bea0cad2b40c07c3b7f3094e853365 /drivers/usb/gadget/s3c-hsudc.c | |
parent | a1977562718f62c26cff79317b63885394255a03 (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/gadget/s3c-hsudc.c b/drivers/usb/gadget/s3c-hsudc.c index fdf7774eacb0..a6a789a05091 100644 --- a/drivers/usb/gadget/s3c-hsudc.c +++ b/drivers/usb/gadget/s3c-hsudc.c | |||
@@ -1366,6 +1366,9 @@ err_remap: | |||
1366 | kfree(hsudc->mem_rsrc); | 1366 | kfree(hsudc->mem_rsrc); |
1367 | 1367 | ||
1368 | err_res: | 1368 | err_res: |
1369 | if (hsudc->transceiver) | ||
1370 | otg_put_transceiver(hsudc->transceiver); | ||
1371 | |||
1369 | kfree(hsudc); | 1372 | kfree(hsudc); |
1370 | return ret; | 1373 | return ret; |
1371 | } | 1374 | } |