Skip to content

Commit f1bf45c

Browse files
Ulf Hanssonrafaeljw
authored andcommitted
drivers: sh: Leave disabling of unused PM domains to genpd
Since genpd at late init, will try to disable unused PM domains we don't need to do it from here as well. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Acked-by: Simon Horman <horms+renesas@verge.net.au> Reviewed-by: Kevin Hilman <khilman@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent d40fce7 commit f1bf45c

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

‎drivers/sh/pm_runtime.c‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ static struct pm_clk_notifier_block platform_bus_notifier = {
7575
.con_ids = { NULL, },
7676
};
7777

78-
static bool default_pm_on;
79-
8078
static int __init sh_pm_runtime_init(void)
8179
{
8280
if (IS_ENABLED(CONFIG_ARCH_SHMOBILE_MULTI)) {
@@ -96,16 +94,7 @@ static int __init sh_pm_runtime_init(void)
9694
return 0;
9795
}
9896

99-
default_pm_on = true;
10097
pm_clk_add_notifier(&platform_bus_type, &platform_bus_notifier);
10198
return 0;
10299
}
103100
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);

0 commit comments

Comments
 (0)