diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index c489e971cebf..30c7f5b968d7 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -1728,7 +1728,6 @@ static int dwc3_probe(struct platform_device *pdev) init_waitqueue_head(&dwc->wait_linkstate); spin_lock_init(&dwc->lock); - pm_runtime_get_noresume(dev); pm_runtime_set_active(dev); if (dwc->enable_bus_suspend) { pm_runtime_set_autosuspend_delay(dev, @@ -1803,10 +1802,8 @@ static int dwc3_probe(struct platform_device *pdev) err2: dwc3_free_event_buffers(dwc); err1: - pm_runtime_allow(dev); - pm_runtime_disable(dev); - pm_runtime_set_suspended(dev); - pm_runtime_put_noidle(dev); + pm_runtime_allow(&pdev->dev); + pm_runtime_disable(&pdev->dev); clk_bulk_disable_unprepare(dwc->num_clks, dwc->clks); assert_reset: