Skip to content

Commit

Permalink
usb: gadget: s3c-hsudc: add missing otg_put_transceiver in probe
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiko Stübner authored and Felipe Balbi committed Dec 21, 2011
1 parent a197756 commit e9bcb9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/usb/gadget/s3c-hsudc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e9bcb9e

Please sign in to comment.