usb: gadget: s3c-hsudc: add missing otg_put_transceiver in probe
authorHeiko Stübner <heiko@sntech.de>
Mon, 19 Dec 2011 18:40:28 +0000 (19:40 +0100)
committerFelipe Balbi <balbi@ti.com>
Wed, 21 Dec 2011 11:24:38 +0000 (13:24 +0200)
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>
drivers/usb/gadget/s3c-hsudc.c

index fdf7774eacb08d425c9747598192f1b875a0c4fd..a6a789a050910cf54dec628f99564db71597d294 100644 (file)
@@ -1366,6 +1366,9 @@ err_remap:
        kfree(hsudc->mem_rsrc);
 
 err_res:
+       if (hsudc->transceiver)
+               otg_put_transceiver(hsudc->transceiver);
+
        kfree(hsudc);
        return ret;
 }