Commit ade79d13 authored by Felipe Balbi's avatar Felipe Balbi Committed by Greg Kroah-Hartman

usb: gadget: lpc32xx_udc: fix wrong clk_put() sequence

This patch fixes the following Coccinelle error:

drivers/usb/gadget/lpc32xx_udc.c:3313:1-7: ERROR: \
	missing clk_put; clk_get on line 3139 and \
	execution via conditional on line 3146
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 36904592
...@@ -3295,9 +3295,9 @@ static int __init lpc32xx_udc_probe(struct platform_device *pdev) ...@@ -3295,9 +3295,9 @@ static int __init lpc32xx_udc_probe(struct platform_device *pdev)
pll_set_fail: pll_set_fail:
clk_disable(udc->usb_pll_clk); clk_disable(udc->usb_pll_clk);
pll_enable_fail: pll_enable_fail:
clk_put(udc->usb_slv_clk);
usb_otg_clk_get_fail:
clk_put(udc->usb_otg_clk); clk_put(udc->usb_otg_clk);
usb_otg_clk_get_fail:
clk_put(udc->usb_slv_clk);
usb_clk_get_fail: usb_clk_get_fail:
clk_put(udc->usb_pll_clk); clk_put(udc->usb_pll_clk);
pll_get_fail: pll_get_fail:
......
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