diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2011-07-13 12:32:07 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-07-13 12:32:07 +0200 |
commit | 796204142a98b6e0e71b494e808d1b6ee62cc75f (patch) | |
tree | f23c361d73b53633ee3106f6f68927d5550289df /arch/arm/mach-shmobile/pm_runtime.c | |
parent | 5125bbf3880755419eff68672623cde49c4f31e8 (diff) | |
download | linux-796204142a98b6e0e71b494e808d1b6ee62cc75f.tar.gz linux-796204142a98b6e0e71b494e808d1b6ee62cc75f.tar.bz2 linux-796204142a98b6e0e71b494e808d1b6ee62cc75f.zip |
ARM / shmobile: Use pm_genpd_poweroff_unused()
Make shmobile use pm_genpd_poweroff_unused() instead of the
open-coded powering off PM domains without devices in use.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Magnus Damm <damm@opensource.se>
Diffstat (limited to 'arch/arm/mach-shmobile/pm_runtime.c')
-rw-r--r-- | arch/arm/mach-shmobile/pm_runtime.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/mach-shmobile/pm_runtime.c b/arch/arm/mach-shmobile/pm_runtime.c index 2f6ded5712ee..6ec454e1e063 100644 --- a/arch/arm/mach-shmobile/pm_runtime.c +++ b/arch/arm/mach-shmobile/pm_runtime.c @@ -14,6 +14,7 @@ #include <linux/kernel.h> #include <linux/io.h> #include <linux/pm_runtime.h> +#include <linux/pm_domain.h> #include <linux/platform_device.h> #include <linux/clk.h> #include <linux/sh_clk.h> @@ -57,12 +58,9 @@ static int __init sh_pm_runtime_init(void) } core_initcall(sh_pm_runtime_init); -void (*shmobile_runtime_pm_late_init)(void); - static int __init sh_pm_runtime_late_init(void) { - if (shmobile_runtime_pm_late_init) - shmobile_runtime_pm_late_init(); + pm_genpd_poweroff_unused(); return 0; } late_initcall(sh_pm_runtime_late_init); |