summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/qcom/lmh.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/thermal/qcom/lmh.c')
-rw-r--r--drivers/thermal/qcom/lmh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/thermal/qcom/lmh.c b/drivers/thermal/qcom/lmh.c
index f6edb12ec..5225b3621 100644
--- a/drivers/thermal/qcom/lmh.c
+++ b/drivers/thermal/qcom/lmh.c
@@ -95,6 +95,9 @@ static int lmh_probe(struct platform_device *pdev)
unsigned int enable_alg;
u32 node_id;
+ if (!qcom_scm_is_available())
+ return -EPROBE_DEFER;
+
lmh_data = devm_kzalloc(dev, sizeof(*lmh_data), GFP_KERNEL);
if (!lmh_data)
return -ENOMEM;