Commit a87dc8fd authored by Mark Brown's avatar Mark Brown Committed by Rafael J. Wysocki

PM / shmobile: Use common always on power domain governor

Saves a tiny amount of code.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarMagnus Damm <damm@opensource.se>
Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
parent 925b44a2
...@@ -162,16 +162,6 @@ static bool pd_active_wakeup(struct device *dev) ...@@ -162,16 +162,6 @@ static bool pd_active_wakeup(struct device *dev)
return active_wakeup ? active_wakeup(dev) : true; 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) static int sh7372_stop_dev(struct device *dev)
{ {
int (*stop)(struct device *dev); int (*stop)(struct device *dev);
...@@ -250,7 +240,7 @@ struct sh7372_pm_domain sh7372_d4 = { ...@@ -250,7 +240,7 @@ struct sh7372_pm_domain sh7372_d4 = {
struct sh7372_pm_domain sh7372_a4r = { struct sh7372_pm_domain sh7372_a4r = {
.genpd.name = "A4R", .genpd.name = "A4R",
.bit_shift = 5, .bit_shift = 5,
.gov = &sh7372_always_on_gov, .gov = &pm_domain_always_on_gov,
.suspend = sh7372_a4r_suspend, .suspend = sh7372_a4r_suspend,
.resume = sh7372_intcs_resume, .resume = sh7372_intcs_resume,
.stay_on = true, .stay_on = true,
...@@ -269,7 +259,7 @@ struct sh7372_pm_domain sh7372_a3ri = { ...@@ -269,7 +259,7 @@ struct sh7372_pm_domain sh7372_a3ri = {
struct sh7372_pm_domain sh7372_a3sp = { struct sh7372_pm_domain sh7372_a3sp = {
.genpd.name = "A3SP", .genpd.name = "A3SP",
.bit_shift = 11, .bit_shift = 11,
.gov = &sh7372_always_on_gov, .gov = &pm_domain_always_on_gov,
.no_debug = true, .no_debug = true,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment