提交 895b31f3 编写于 作者: G Geert Uytterhoeven 提交者: Rafael J. Wysocki

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: NGeert Uytterhoeven <geert+renesas@glider.be>
Acked-by: NKevin Hilman <khilman@linaro.org>
Acked-by: NPavel Machek <pavel@ucw.cz>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 206c5f60
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册