Check for SCM availability before attempting to use SPM Signed-off-by: Felix Fietkau --- a/drivers/soc/qcom/spm.c +++ b/drivers/soc/qcom/spm.c @@ -214,6 +214,9 @@ static int __init qcom_cpuidle_init(stru if (!qcom_scm_is_available()) return -EPROBE_DEFER; + if (!qcom_scm_is_available()) + return -EPROBE_DEFER; + for (i = 0; ; i++) { state_node = of_parse_phandle(cpu_node, "cpu-idle-states", i); if (!state_node)