aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/pm_runtime.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2011-07-13 06:32:07 -0400
committerRafael J. Wysocki <rjw@sisk.pl>2011-07-13 06:32:07 -0400
commit796204142a98b6e0e71b494e808d1b6ee62cc75f (patch)
treef23c361d73b53633ee3106f6f68927d5550289df /arch/arm/mach-shmobile/pm_runtime.c
parent5125bbf3880755419eff68672623cde49c4f31e8 (diff)
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.c6
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 @@
14#include <linux/kernel.h> 14#include <linux/kernel.h>
15#include <linux/io.h> 15#include <linux/io.h>
16#include <linux/pm_runtime.h> 16#include <linux/pm_runtime.h>
17#include <linux/pm_domain.h>
17#include <linux/platform_device.h> 18#include <linux/platform_device.h>
18#include <linux/clk.h> 19#include <linux/clk.h>
19#include <linux/sh_clk.h> 20#include <linux/sh_clk.h>
@@ -57,12 +58,9 @@ static int __init sh_pm_runtime_init(void)
57} 58}
58core_initcall(sh_pm_runtime_init); 59core_initcall(sh_pm_runtime_init);
59 60
60void (*shmobile_runtime_pm_late_init)(void);
61
62static int __init sh_pm_runtime_late_init(void) 61static int __init sh_pm_runtime_late_init(void)
63{ 62{
64 if (shmobile_runtime_pm_late_init) 63 pm_genpd_poweroff_unused();
65 shmobile_runtime_pm_late_init();
66 return 0; 64 return 0;
67} 65}
68late_initcall(sh_pm_runtime_late_init); 66late_initcall(sh_pm_runtime_late_init);