Skip to contentSkip to conversation

drivers: sh: Remove automatic sh_pm_runtime_init() if ARCH_SHMOBILE_LEGACY

PATCH In review Geert Uytterhoeven 1 participant 1 message Mar 19, 2014 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 5/5 drivers: sh: Remove automatic sh_pm_runtime_init() if ARCH_SHMOBILE_LEGACY

From: Geert Uytterhoeven <[email protected]>

Now all shmobile SoCs call sh_pm_runtime_init(), remove the core_initcall() for ARCH_SHMOBILE_LEGACY, and the check to prevent double enabling.

---
 drivers/sh/pm_runtime.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/sh/pm_runtime.c +1 -4
index 58c114464831..55d58153b1f7 100644
@@ -46,14 +46,11 @@ static bool default_pm_on;
 
 int __init sh_pm_runtime_init(void)
 {
-	if (default_pm_on)
-		return 0;
-
 	default_pm_on = true;
 	pm_clk_add_notifier(&platform_bus_type, &platform_bus_notifier);
 	return 0;
 }
-#if defined(CONFIG_SUPERH) || defined(CONFIG_ARCH_SHMOBILE_LEGACY)
+#ifdef CONFIG_SUPERH
 core_initcall(sh_pm_runtime_init);
 #endif
 
Signature · 1 line
1.7.9.5