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: Gaurav Kohli <gkohli@codeaurora.org>
This commit is contained in:
Gaurav Kohli 2020-12-18 14:05:54 +05:30
commit d318948fc9

View file

@ -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;