mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Acked-by: Kevin Hilman <[email protected]> Acked-by: Pavel Machek <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
206c5f60a3
commit
895b31f3b6
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue