mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
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>
This commit is contained in:
parent
9ae79876d8
commit
b1a0c42396
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue