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

Commit d3f37ae4 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "USB: ehci-msm2: Disable runtime pm before remove hcd"

parents 5d2fc27d 00b45070
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1619,6 +1619,10 @@ static int ehci_msm2_remove(struct platform_device *pdev)
		free_irq(mhcd->wakeup_irq, mhcd);
	}

	/* If the device was removed no need to call pm_runtime_disable */
	if (pdev->dev.power.power_state.event != PM_EVENT_INVALID)
		pm_runtime_disable(&pdev->dev);

	device_init_wakeup(&pdev->dev, 0);
	pm_runtime_set_suspended(&pdev->dev);