mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
QG: qg prob must after rtc prob
qg use alarm timer, so qg must prob after rtc prob. when qg can't get rtc dev, return -517 to retry. Change-Id: I36603856536505c52151d8ef7d685b4ccc3e96e6 Signed-off-by: mahj8 <mahj8@lenovo.com> Reviewed-on: https://gerrit.mot.com/1825304 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
73a0d9455b
commit
f7c3400a64
1 changed files with 4 additions and 0 deletions
|
|
@ -4710,6 +4710,10 @@ static int qpnp_qg_probe(struct platform_device *pdev)
|
|||
struct iio_dev *indio_dev;
|
||||
struct qg_config *config;
|
||||
|
||||
if (!alarmtimer_get_rtcdev()) {
|
||||
pr_err("Failed:qpnp qg probe failed, wait rtc prob\n");
|
||||
return -EPROBE_DEFER;
|
||||
}
|
||||
indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*chip));
|
||||
if (!indio_dev)
|
||||
return -ENOMEM;
|
||||
|
|
|
|||
Loading…
Reference in a new issue