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>
This commit is contained in:
Li Jun 2020-03-14 15:16:32 +08:00
parent 65512083ef
commit 24b9a59b32
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;