It's possible a PM domain defines only one state and it does not need
a governor to work. For such case, a warning actually is not necessary.
Signed-off-by: Dong Aisheng <[email protected]>
Reviewed-by: Ulf Hansson <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
ret = genpd_set_default_power_state(genpd);
if (ret)
return ret;
- } else if (!gov) {
+ } else if (!gov && genpd->state_count > 1) {
pr_warn("%s : no governor for states\n", genpd->name);
}