diff options
-rw-r--r-- | drivers/sh/pm_runtime.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/sh/pm_runtime.c b/drivers/sh/pm_runtime.c index 72f63817a1a0..fe2c2d595f59 100644 --- a/drivers/sh/pm_runtime.c +++ b/drivers/sh/pm_runtime.c | |||
@@ -75,8 +75,6 @@ static struct pm_clk_notifier_block platform_bus_notifier = { | |||
75 | .con_ids = { NULL, }, | 75 | .con_ids = { NULL, }, |
76 | }; | 76 | }; |
77 | 77 | ||
78 | static bool default_pm_on; | ||
79 | |||
80 | static int __init sh_pm_runtime_init(void) | 78 | static int __init sh_pm_runtime_init(void) |
81 | { | 79 | { |
82 | if (IS_ENABLED(CONFIG_ARCH_SHMOBILE_MULTI)) { | 80 | if (IS_ENABLED(CONFIG_ARCH_SHMOBILE_MULTI)) { |
@@ -96,16 +94,7 @@ static int __init sh_pm_runtime_init(void) | |||
96 | return 0; | 94 | return 0; |
97 | } | 95 | } |
98 | 96 | ||
99 | default_pm_on = true; | ||
100 | pm_clk_add_notifier(&platform_bus_type, &platform_bus_notifier); | 97 | pm_clk_add_notifier(&platform_bus_type, &platform_bus_notifier); |
101 | return 0; | 98 | return 0; |
102 | } | 99 | } |
103 | core_initcall(sh_pm_runtime_init); | 100 | core_initcall(sh_pm_runtime_init); |
104 | |||
105 | static int __init sh_pm_runtime_late_init(void) | ||
106 | { | ||
107 | if (default_pm_on) | ||
108 | pm_genpd_poweroff_unused(); | ||
109 | return 0; | ||
110 | } | ||
111 | late_initcall(sh_pm_runtime_late_init); | ||