diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 4b5714199490802d626df3c34952925be0ee6e77..69142d2f64dc5c071737e22a8b55e27094049b91 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -2383,7 +2383,7 @@ EXPORT_SYMBOL_GPL(genpd_dev_pm_attach_by_id); * power-domain-names DT property. For further description see * genpd_dev_pm_attach_by_id(). */ -struct device *genpd_dev_pm_attach_by_name(struct device *dev, char *name) +struct device *genpd_dev_pm_attach_by_name(struct device *dev, const char *name) { int index; diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index 776c546d581afb4064d977e4f4f729a69ea68f0a..ebd9589979af91e647637d78b0dd3d3bba196345 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -240,7 +240,7 @@ int genpd_dev_pm_attach(struct device *dev); struct device *genpd_dev_pm_attach_by_id(struct device *dev, unsigned int index); struct device *genpd_dev_pm_attach_by_name(struct device *dev, - char *name); + const char *name); #else /* !CONFIG_PM_GENERIC_DOMAINS_OF */ static inline int of_genpd_add_provider_simple(struct device_node *np, struct generic_pm_domain *genpd) @@ -293,7 +293,7 @@ static inline struct device *genpd_dev_pm_attach_by_id(struct device *dev, } static inline struct device *genpd_dev_pm_attach_by_name(struct device *dev, - char *name) + const char *name) { return NULL; }