summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/pm-sh7372.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2011-07-13 12:32:07 +0200
committerRafael J. Wysocki <rjw@sisk.pl>2011-07-13 12:32:07 +0200
commit796204142a98b6e0e71b494e808d1b6ee62cc75f (patch)
treef23c361d73b53633ee3106f6f68927d5550289df /arch/arm/mach-shmobile/pm-sh7372.c
parent5125bbf3880755419eff68672623cde49c4f31e8 (diff)
downloadblackbird-op-linux-796204142a98b6e0e71b494e808d1b6ee62cc75f.tar.gz
blackbird-op-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-sh7372.c')
-rw-r--r--arch/arm/mach-shmobile/pm-sh7372.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/arm/mach-shmobile/pm-sh7372.c b/arch/arm/mach-shmobile/pm-sh7372.c
index 71400eae2b68..f47281a57d43 100644
--- a/arch/arm/mach-shmobile/pm-sh7372.c
+++ b/arch/arm/mach-shmobile/pm-sh7372.c
@@ -126,17 +126,6 @@ static bool pd_active_wakeup(struct device *dev)
return true;
}
-static void sh7372_late_pm_domain_off(void)
-{
- /* request power down of unused pm domains */
- queue_work(pm_wq, &sh7372_a4lc.genpd.power_off_work);
- queue_work(pm_wq, &sh7372_a4mp.genpd.power_off_work);
- queue_work(pm_wq, &sh7372_d4.genpd.power_off_work);
- queue_work(pm_wq, &sh7372_a3rv.genpd.power_off_work);
- queue_work(pm_wq, &sh7372_a3ri.genpd.power_off_work);
- queue_work(pm_wq, &sh7372_a3sg.genpd.power_off_work);
-}
-
void sh7372_init_pm_domain(struct sh7372_pm_domain *sh7372_pd)
{
struct generic_pm_domain *genpd = &sh7372_pd->genpd;
@@ -157,8 +146,6 @@ void sh7372_init_pm_domain(struct sh7372_pm_domain *sh7372_pd)
genpd->power_on = pd_power_up;
}
genpd->power_on(&sh7372_pd->genpd);
-
- shmobile_runtime_pm_late_init = sh7372_late_pm_domain_off;
}
void sh7372_add_device_to_domain(struct sh7372_pm_domain *sh7372_pd,
OpenPOWER on IntegriCloud