diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c index 8263429e21b8dd5b6801a4c2758e5a054568e4c7..6c60a5087cafb885ea7c79fb6e60b6dd026639e4 100644 --- a/drivers/firmware/psci.c +++ b/drivers/firmware/psci.c @@ -630,7 +630,7 @@ int __init psci_dt_init(void) np = of_find_matching_node_and_match(NULL, psci_of_match, &matched_np); - if (!np) + if (!np || !of_device_is_available(np)) return -ENODEV; init_fn = (psci_initcall_t)matched_np->data;