Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d318948f authored by Gaurav Kohli's avatar Gaurav Kohli
Browse files

power: reset: qcom-dload-mode: Add dependency of scm in download driver



Add scm driver dependency in download mode driver, This helps to make sure
that download mode driver probe always happen after scm only.

Change-Id: I49a3f1ae3c610903148f97e0ee68ffdee5d87016
Signed-off-by: default avatarGaurav Kohli <gkohli@codeaurora.org>
parent dd05986c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -316,6 +316,9 @@ static int qcom_dload_probe(struct platform_device *pdev)
	struct qcom_dload *poweroff;
	int ret;

	if (!qcom_scm_is_available())
		return -EPROBE_DEFER;

	poweroff = devm_kzalloc(&pdev->dev, sizeof(*poweroff), GFP_KERNEL);
	if (!poweroff)
		return -ENOMEM;