diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2014-11-10 13:37:39 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-11-13 18:04:36 -0500 |
commit | 895b31f3b6b800b8f46569391f2396b1f221c602 (patch) | |
tree | f9fe8bc27a310e3559b85dcd17c4f266bf57ae55 /drivers/base | |
parent | 206c5f60a3d902bc4b56dab2de3e88de5eb06108 (diff) |
PM / Domains: Make genpd parameter of pm_genpd_present() const
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>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/power/domain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 40bc2f4072cc..28d6e8bf746c 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c | |||
@@ -753,9 +753,9 @@ static inline void genpd_power_off_work_fn(struct work_struct *work) {} | |||
753 | * pm_genpd_present - Check if the given PM domain has been initialized. | 753 | * pm_genpd_present - Check if the given PM domain has been initialized. |
754 | * @genpd: PM domain to check. | 754 | * @genpd: PM domain to check. |
755 | */ | 755 | */ |
756 | static bool pm_genpd_present(struct generic_pm_domain *genpd) | 756 | static bool pm_genpd_present(const struct generic_pm_domain *genpd) |
757 | { | 757 | { |
758 | struct generic_pm_domain *gpd; | 758 | const struct generic_pm_domain *gpd; |
759 | 759 | ||
760 | if (IS_ERR_OR_NULL(genpd)) | 760 | if (IS_ERR_OR_NULL(genpd)) |
761 | return false; | 761 | return false; |