diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 8428d02cfe58..4f63a8bc7260 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -2622,6 +2622,10 @@ static int genpd_iterate_idle_states(struct device_node *dn, np = it.node; if (!of_match_node(idle_state_match, np)) continue; + + if (!of_device_is_available(np)) + continue; + if (states) { ret = genpd_parse_state(&states[i], np); if (ret) {