]> Git Repo - linux.git/commitdiff
PM / Domains: Remove dev->driver check for runtime PM
authorLina Iyer <[email protected]>
Wed, 28 Oct 2015 21:18:59 +0000 (15:18 -0600)
committerRafael J. Wysocki <[email protected]>
Mon, 2 Nov 2015 01:23:11 +0000 (02:23 +0100)
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 <[email protected]>
Acked-by: Ulf Hansson <[email protected]>
Signed-off-by: Kevin Hilman <[email protected]>
Signed-off-by: Lina Iyer <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
drivers/base/power/domain.c

index a7dfdf9f15bada9112d38c6c5616abbd40f3762c..e1c017411aeba1abad85bec79c369e29e89c3e0b 100644 (file)
@@ -321,8 +321,7 @@ static int genpd_poweroff(struct generic_pm_domain *genpd, bool is_async)
                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++;
        }
 
This page took 0.046423 seconds and 4 git commands to generate.