From: Heiko Stübner Date: Mon, 19 Dec 2011 18:40:28 +0000 (+0100) Subject: usb: gadget: s3c-hsudc: add missing otg_put_transceiver in probe X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e9bcb9e5feb0f5d1ccf155b6ca9e1b8f7147f0d6;p=mv-sheeva.git 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 Signed-off-by: Felipe Balbi --- 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; }