]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
PM / Domains: Validate cases of a non-bound driver in genpd governor
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 Dec 2015 13:08:27 +0000 (14:08 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 2 Dec 2015 14:21:21 +0000 (15:21 +0100)
Recently genpd removed the requirement of a having a driver bound for its
attached devices to allow genpd to power off. That change should also have
removed a corresponding validation in the governor, let's correct that.

Fixes: 298cd0f08801 (PM / Domains: Remove dev->driver check for runtime)
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain_governor.c

index e60dd12e23aaee75a2a0d90ba0ba720c28c769e7..1e937ac5f45661b6e2af770e1ab9633e91ad7bd6 100644 (file)
@@ -160,9 +160,6 @@ static bool default_power_down_ok(struct dev_pm_domain *pd)
                struct gpd_timing_data *td;
                s64 constraint_ns;
 
-               if (!pdd->dev->driver)
-                       continue;
-
                /*
                 * Check if the device is allowed to be off long enough for the
                 * domain to turn off and on (that's how much time it will