[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201106073358.8379-3-patrice.chotard@st.com>
Date: Fri, 6 Nov 2020 08:33:56 +0100
From: <patrice.chotard@...com>
To: "Rafael J . Wysocki" <rjw@...ysocki.net>,
<linux-pm@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Ulf Hansson <ulf.hansson@...aro.org>,
Kevin Hilman <khilman@...nel.org>
CC: <patrice.chotard@...com>, Erwan Le Ray <erwan.leray@...com>,
Alexandre TORGUE <alexandre.torgue@...com>,
Fabrice Gasnier <fabrice.gasnier@...com>,
Pierre-Yves MORDRET <pierre-yves.mordret@...com>,
<amelie.delaunay@...com>, <erwan_leray@...com>,
<alain.volmat@...com>
Subject: [PATCH v1 2/4] PM: domains: Make usage of device_wakeup_path() helper
From: Patrice Chotard <patrice.chotard@...com>
Make usage of dev_wakeup_path() helper.
Signed-off-by: Patrice Chotard <patrice.chotard@...com>
---
drivers/base/power/domain.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index 743268996336..e0894ef8457c 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -1142,7 +1142,7 @@ static int genpd_finish_suspend(struct device *dev, bool poweroff)
if (ret)
return ret;
- if (dev->power.wakeup_path && genpd_is_active_wakeup(genpd))
+ if (device_wakeup_path(dev) && genpd_is_active_wakeup(genpd))
return 0;
if (genpd->dev_ops.stop && genpd->dev_ops.start &&
@@ -1196,7 +1196,7 @@ static int genpd_resume_noirq(struct device *dev)
if (IS_ERR(genpd))
return -EINVAL;
- if (dev->power.wakeup_path && genpd_is_active_wakeup(genpd))
+ if (device_wakeup_path(dev) && genpd_is_active_wakeup(genpd))
return pm_generic_resume_noirq(dev);
genpd_lock(genpd);
--
2.17.1
Powered by blists - more mailing lists