From: Vladimir Zapolskiy Date: Sat, 17 Oct 2015 19:30:25 +0000 (+0300) Subject: usb: host: lpc32xx: balance clk enable/disable on removal X-Git-Tag: v4.4-rc1~127^2~4 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=b1a0c4239653a9a4fba90e9f3e407c7cb6140f61;p=linux.git usb: host: lpc32xx: balance clk enable/disable on removal The change adds missing clk_disable_unprepare(usb_otg_clk) call, also the disabled clocks are sorted in order opposite to enabled clocks. Signed-off-by: Vladimir Zapolskiy Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ohci-nxp.c b/drivers/usb/host/ohci-nxp.c index 0b3cf0d0fc5c..c0d892c81def 100644 --- a/drivers/usb/host/ohci-nxp.c +++ b/drivers/usb/host/ohci-nxp.c @@ -300,8 +300,9 @@ static int ohci_hcd_nxp_remove(struct platform_device *pdev) usb_remove_hcd(hcd); ohci_nxp_stop_hc(); usb_put_hcd(hcd); - clk_disable_unprepare(usb_pll_clk); + clk_disable_unprepare(usb_otg_clk); clk_disable_unprepare(usb_dev_clk); + clk_disable_unprepare(usb_pll_clk); i2c_unregister_device(isp1301_i2c_client); isp1301_i2c_client = NULL;