1
0
Fork 0

MLK-23587-1 usb: dwc3: imx8mp: keep runtime active when remove driver

As driver removal will do clocks disable, we don't need runtime
suspend to disable clocks, so keep runtime resume when driver
remove.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
(cherry picked from commit 24b9a59b32127af6e217e56490d643f39ca6ff60)
5.4-rM2-2.2.x-imx-squashed
Li Jun 2020-03-14 15:16:32 +08:00
parent 1ead578c33
commit 9cc87b55a4
1 changed files with 2 additions and 2 deletions

View File

@ -232,14 +232,14 @@ static int dwc3_imx8mp_remove(struct platform_device *pdev)
struct dwc3_imx8mp *dwc = platform_get_drvdata(pdev);
struct device *dev = &pdev->dev;
pm_runtime_get_sync(dev);
of_platform_depopulate(dev);
clk_disable_unprepare(dwc->bus_clk);
clk_disable_unprepare(dwc->sleep_clk);
pm_runtime_allow(dev);
pm_runtime_disable(dev);
pm_runtime_put_noidle(dev);
platform_set_drvdata(pdev, NULL);
return 0;