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:
mahj8 2020-12-11 13:48:22 +08:00 • committed by Xiaojun Ji
commit f7c3400a64

View file

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