mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
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:
parent
dd05986c8b
commit
d318948fc9
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue