Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1a0c423 authored by Vladimir Zapolskiy's avatar Vladimir Zapolskiy Committed by Greg Kroah-Hartman
Browse files

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: default avatarVladimir Zapolskiy <vz@mleia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9ae79876
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -300,8 +300,9 @@ static int ohci_hcd_nxp_remove(struct platform_device *pdev)
	usb_remove_hcd(hcd);
	usb_remove_hcd(hcd);
	ohci_nxp_stop_hc();
	ohci_nxp_stop_hc();
	usb_put_hcd(hcd);
	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_dev_clk);
	clk_disable_unprepare(usb_pll_clk);
	i2c_unregister_device(isp1301_i2c_client);
	i2c_unregister_device(isp1301_i2c_client);
	isp1301_i2c_client = NULL;
	isp1301_i2c_client = NULL;