aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vz@mleia.com>2015-10-17 15:30:25 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-24 22:53:53 -0400
commitb1a0c4239653a9a4fba90e9f3e407c7cb6140f61 (patch)
tree1c525442f5ca0683e3dc11ea13edc65419ef3046
parent9ae79876d8c9e2ff7d083ad799fcf98488af49b6 (diff)
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 <vz@mleia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/host/ohci-nxp.c3
1 files changed, 2 insertions, 1 deletions
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)
300 usb_remove_hcd(hcd); 300 usb_remove_hcd(hcd);
301 ohci_nxp_stop_hc(); 301 ohci_nxp_stop_hc();
302 usb_put_hcd(hcd); 302 usb_put_hcd(hcd);
303 clk_disable_unprepare(usb_pll_clk); 303 clk_disable_unprepare(usb_otg_clk);
304 clk_disable_unprepare(usb_dev_clk); 304 clk_disable_unprepare(usb_dev_clk);
305 clk_disable_unprepare(usb_pll_clk);
305 i2c_unregister_device(isp1301_i2c_client); 306 i2c_unregister_device(isp1301_i2c_client);
306 isp1301_i2c_client = NULL; 307 isp1301_i2c_client = NULL;
307 308