ARM: shmobile: pm-rmobile: Use GENPD_FLAG_ACTIVE_WAKEUP
Set the newly introduced GENPD_FLAG_ACTIVE_WAKEUP, which allows to remove the driver's own "always true" callback. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Acked-by: Simon Horman <horms+renesas@verge.net.au> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
95a20ef6f7
commit
eb0ddf9dd2
1 changed files with 1 additions and 7 deletions
|
@ -120,18 +120,12 @@ static int rmobile_pd_power_up(struct generic_pm_domain *genpd)
|
||||||
return __rmobile_pd_power_up(to_rmobile_pd(genpd), true);
|
return __rmobile_pd_power_up(to_rmobile_pd(genpd), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool rmobile_pd_active_wakeup(struct device *dev)
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd)
|
static void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd)
|
||||||
{
|
{
|
||||||
struct generic_pm_domain *genpd = &rmobile_pd->genpd;
|
struct generic_pm_domain *genpd = &rmobile_pd->genpd;
|
||||||
struct dev_power_governor *gov = rmobile_pd->gov;
|
struct dev_power_governor *gov = rmobile_pd->gov;
|
||||||
|
|
||||||
genpd->flags |= GENPD_FLAG_PM_CLK;
|
genpd->flags |= GENPD_FLAG_PM_CLK | GENPD_FLAG_ACTIVE_WAKEUP;
|
||||||
genpd->dev_ops.active_wakeup = rmobile_pd_active_wakeup;
|
|
||||||
genpd->power_off = rmobile_pd_power_down;
|
genpd->power_off = rmobile_pd_power_down;
|
||||||
genpd->power_on = rmobile_pd_power_up;
|
genpd->power_on = rmobile_pd_power_up;
|
||||||
genpd->attach_dev = cpg_mstp_attach_dev;
|
genpd->attach_dev = cpg_mstp_attach_dev;
|
||||||
|
|
Loading…
Add table
Reference in a new issue