Unverified Commit 43499e79 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!9493 thermal/drivers/qcom/lmh: Check for SCM availability at probe

parents 4a3f70f7 41796cc0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;