usb: host: lpc32xx: balance clk enable/disable on removal
[firefly-linux-kernel-4.4.55.git] / drivers / usb / host / ohci-nxp.c
index 0b3cf0d0fc5c38764d4c909953ecae9250c68c5a..c0d892c81def915a8ab478231878335cad01524f 100644 (file)
@@ -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;