Commit 578efa367eec9d25a23c03cda434d4580a797167

Authored by J, KEERTHY
Committed by Tero Kristo
1 parent 3f9e92bfef

remoteproc: wkup_m3: Defer probe until wkup_m3_pm_ops are populated

Defer probe till remowkup_m3_pm_ops are populated. This is to ensure
that wkup_m3 is probed after the wkup_m3_pm_ops are populated by the
mach-omap2 init call. This ensures clean initialization of m3.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Acked-by: Dave Gerlach <d-gerlach@ti.com>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

drivers/remoteproc/wkup_m3_rproc.c
... ... @@ -389,6 +389,9 @@
389 389 struct resource *res;
390 390 struct task_struct *task;
391 391  
  392 + if (!wkup_m3_pm_ops)
  393 + return -EPROBE_DEFER;
  394 +
392 395 pm_runtime_enable(&pdev->dev);
393 396  
394 397 ret = pm_runtime_get_sync(&pdev->dev);