diff options
author | Heiko Stübner <heiko@sntech.de> | 2011-12-19 19:40:28 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-12-21 13:24:38 +0200 |
commit | e9bcb9e5feb0f5d1ccf155b6ca9e1b8f7147f0d6 (patch) | |
tree | 078d4c4932bea0cad2b40c07c3b7f3094e853365 /drivers/usb | |
parent | a1977562718f62c26cff79317b63885394255a03 (diff) | |
download | linux-stable-e9bcb9e5feb0f5d1ccf155b6ca9e1b8f7147f0d6.tar.gz linux-stable-e9bcb9e5feb0f5d1ccf155b6ca9e1b8f7147f0d6.tar.bz2 linux-stable-e9bcb9e5feb0f5d1ccf155b6ca9e1b8f7147f0d6.zip |
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')
-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: kfree(hsudc->mem_rsrc); err_res: + if (hsudc->transceiver) + otg_put_transceiver(hsudc->transceiver); + kfree(hsudc); return ret; } |