Message ID | 1435374156-19214-3-git-send-email-lina.iyer@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 27.06.2015 12:02, Lina Iyer wrote: > 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. > > 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(-) Makes sense, Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Best regards, Krzysztof > > diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c > index 44af889..e9b7cfb 100644 > --- a/drivers/base/power/domain.c > +++ b/drivers/base/power/domain.c > @@ -391,8 +391,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++; > } > >
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 44af889..e9b7cfb 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -391,8 +391,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++; }