diff mbox

PM / Domains: Remove dev->driver check for runtime PM

Message ID 1446067139-42360-1-git-send-email-lina.iyer@linaro.org
State Accepted
Commit 298cd0f0880188422a518e9d780bd49d66ea7ad5
Headers show

Commit Message

Lina Iyer Oct. 28, 2015, 9:18 p.m. UTC
Remove check for driver of a device, for runtime PM. Device may be
suspended without an explicit driver. This check seems to be vestigial
and incorrect in the current context.

Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>

Acked-by: Ulf Hansson <ulf.hansson@linaro.org>

Signed-off-by: Kevin Hilman <khilman@linaro.org>

Signed-off-by: Lina Iyer <lina.iyer@linaro.org>

---
 drivers/base/power/domain.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index 9b0f5a0..6483a92 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -346,8 +346,7 @@  static int pm_genpd_poweroff(struct generic_pm_domain *genpd)
 		if (stat > PM_QOS_FLAGS_NONE)
 			return -EBUSY;
 
-		if (pdd->dev->driver && (!pm_runtime_suspended(pdd->dev)
-		    || pdd->dev->power.irq_safe))
+		if (!pm_runtime_suspended(pdd->dev) || pdd->dev->power.irq_safe)
 			not_suspended++;
 	}