Commit e9bcb9e5 authored by Heiko Stübner's avatar Heiko Stübner Committed by Felipe Balbi

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: default avatarHeiko Stuebner <heiko@sntech.de>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent a1977562
......@@ -1366,6 +1366,9 @@ static int __devinit s3c_hsudc_probe(struct platform_device *pdev)
kfree(hsudc->mem_rsrc);
err_res:
if (hsudc->transceiver)
otg_put_transceiver(hsudc->transceiver);
kfree(hsudc);
return ret;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment