PM / Domains: Make genpd parameter of pm_genpd_present() const
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 10 Nov 2014 18:37:39 +0000 (19:37 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 13 Nov 2014 23:04:36 +0000 (00:04 +0100)
The PM domain pointed to by the genpd parameter is never modified.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Kevin Hilman <khilman@linaro.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c

index 40bc2f4072cc28ea4138ae36b3b08cb96f2ed158..28d6e8bf746c468384cc4c22b62c9b9e2786d8c9 100644 (file)
@@ -753,9 +753,9 @@ static inline void genpd_power_off_work_fn(struct work_struct *work) {}
  * pm_genpd_present - Check if the given PM domain has been initialized.
  * @genpd: PM domain to check.
  */
-static bool pm_genpd_present(struct generic_pm_domain *genpd)
+static bool pm_genpd_present(const struct generic_pm_domain *genpd)
 {
-       struct generic_pm_domain *gpd;
+       const struct generic_pm_domain *gpd;
 
        if (IS_ERR_OR_NULL(genpd))
                return false;