usb: gadget: lpc32xx_udc: fix wrong clk_put() sequence
authorFelipe Balbi <balbi@ti.com>
Mon, 10 Mar 2014 18:30:53 +0000 (13:30 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 23:05:31 +0000 (16:05 -0700)
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: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/lpc32xx_udc.c

index 049ebab0d3607e7719843335c14201878df285c2..a139894c600fc6a5f022d78e37f1d15ce0bc2934 100644 (file)
@@ -3295,9 +3295,9 @@ usb_clk_enable_fail:
 pll_set_fail:
        clk_disable(udc->usb_pll_clk);
 pll_enable_fail:
-       clk_put(udc->usb_slv_clk);
-usb_otg_clk_get_fail:
        clk_put(udc->usb_otg_clk);
+usb_otg_clk_get_fail:
+       clk_put(udc->usb_slv_clk);
 usb_clk_get_fail:
        clk_put(udc->usb_pll_clk);
 pll_get_fail: