summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-08 23:27:40 +0100
committerRafael J. Wysocki <rjw@sisk.pl>2011-12-09 23:22:52 +0100
commita87dc8fdc250f6416b522a3eb302c8cf95c2317c (patch)
treefec52273f00b7012c18253a9058ffcfd3b1d0244 /arch/arm
parentPM / Domains: Provide an always on power domain governor (diff)
downloadlinux-a87dc8fdc250f6416b522a3eb302c8cf95c2317c.tar.xz
linux-a87dc8fdc250f6416b522a3eb302c8cf95c2317c.zip
PM / shmobile: Use common always on power domain governor
Saves a tiny amount of code. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Magnus Damm <damm@opensource.se> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-shmobile/pm-sh7372.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/arch/arm/mach-shmobile/pm-sh7372.c b/arch/arm/mach-shmobile/pm-sh7372.c
index 8d9ea8924ed3..f742c61c8902 100644
--- a/arch/arm/mach-shmobile/pm-sh7372.c
+++ b/arch/arm/mach-shmobile/pm-sh7372.c
@@ -162,16 +162,6 @@ static bool pd_active_wakeup(struct device *dev)
return active_wakeup ? active_wakeup(dev) : true;
}
-static bool sh7372_power_down_forbidden(struct dev_pm_domain *domain)
-{
- return false;
-}
-
-struct dev_power_governor sh7372_always_on_gov = {
- .power_down_ok = sh7372_power_down_forbidden,
- .stop_ok = default_stop_ok,
-};
-
static int sh7372_stop_dev(struct device *dev)
{
int (*stop)(struct device *dev);
@@ -250,7 +240,7 @@ struct sh7372_pm_domain sh7372_d4 = {
struct sh7372_pm_domain sh7372_a4r = {
.genpd.name = "A4R",
.bit_shift = 5,
- .gov = &sh7372_always_on_gov,
+ .gov = &pm_domain_always_on_gov,
.suspend = sh7372_a4r_suspend,
.resume = sh7372_intcs_resume,
.stay_on = true,
@@ -269,7 +259,7 @@ struct sh7372_pm_domain sh7372_a3ri = {
struct sh7372_pm_domain sh7372_a3sp = {
.genpd.name = "A3SP",
.bit_shift = 11,
- .gov = &sh7372_always_on_gov,
+ .gov = &pm_domain_always_on_gov,
.no_debug = true,
};