Message ID | 20200518154931.6144-1-qais.yousef@arm.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 1cb3b0095c3d0bb96912bfbbce4fc006d41f367c |
Headers | show |
Series | [RESEND,v2,1/3] usb/ohci-platform: Fix a warning when hibernating | expand |
diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c index 7addfc2cbadc..4a8456f12a73 100644 --- a/drivers/usb/host/ohci-platform.c +++ b/drivers/usb/host/ohci-platform.c @@ -299,6 +299,11 @@ static int ohci_platform_resume(struct device *dev) } ohci_resume(hcd, false); + + pm_runtime_disable(dev); + pm_runtime_set_active(dev); + pm_runtime_enable(dev); + return 0; } #endif /* CONFIG_PM_SLEEP */