Commit 298cd0f0 authored by Lina Iyer's avatar Lina Iyer Committed by Rafael J. Wysocki

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

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: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarKevin Hilman <khilman@linaro.org>
Signed-off-by: default avatarLina Iyer <lina.iyer@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 2b1d88cd
...@@ -321,8 +321,7 @@ static int genpd_poweroff(struct generic_pm_domain *genpd, bool is_async) ...@@ -321,8 +321,7 @@ static int genpd_poweroff(struct generic_pm_domain *genpd, bool is_async)
if (stat > PM_QOS_FLAGS_NONE) if (stat > PM_QOS_FLAGS_NONE)
return -EBUSY; return -EBUSY;
if (pdd->dev->driver && (!pm_runtime_suspended(pdd->dev) if (!pm_runtime_suspended(pdd->dev) || pdd->dev->power.irq_safe)
|| pdd->dev->power.irq_safe))
not_suspended++; not_suspended++;
} }
......
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