runtime_pm was already implemented, but not enabled at probe.
Signed-off-by: Kristen Carlson Accardi <kristen@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
if (pnw->iotg.otg.state == OTG_STATE_A_IDLE)
queue_work(pnw->qwork, &pnw->work);
+ pm_runtime_put_noidle(&pdev->dev);
+ pm_runtime_allow(&pdev->dev);
+
return 0;
err:
{
struct penwell_otg *pnw = the_transceiver;
+ pm_runtime_get_noresume(&pdev->dev);
+ pm_runtime_forbid(&pdev->dev);
+
if (pnw->qwork) {
flush_workqueue(pnw->qwork);
destroy_workqueue(pnw->qwork);