aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/soc/mediatek/mtk-scpsys.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c
index 837effe19907..57e781c71e67 100644
--- a/drivers/soc/mediatek/mtk-scpsys.c
+++ b/drivers/soc/mediatek/mtk-scpsys.c
@@ -491,14 +491,13 @@ static int scpsys_probe(struct platform_device *pdev)
491 genpd->dev_ops.active_wakeup = scpsys_active_wakeup; 491 genpd->dev_ops.active_wakeup = scpsys_active_wakeup;
492 492
493 /* 493 /*
494 * Initially turn on all domains to make the domains usable 494 * With CONFIG_PM disabled turn on all domains to make the
495 * with !CONFIG_PM and to get the hardware in sync with the 495 * hardware usable.
496 * software. The unused domains will be switched off during
497 * late_init time.
498 */ 496 */
499 genpd->power_on(genpd); 497 if (!IS_ENABLED(CONFIG_PM))
498 genpd->power_on(genpd);
500 499
501 pm_genpd_init(genpd, NULL, false); 500 pm_genpd_init(genpd, NULL, true);
502 } 501 }
503 502
504 /* 503 /*