|
@@ -285,7 +285,7 @@ static int max8998_rtc_probe(struct platform_device *pdev)
|
|
|
info->irq, ret);
|
|
|
|
|
|
dev_info(&pdev->dev, "RTC CHIP NAME: %s\n", pdev->id_entry->name);
|
|
|
- if (pdata->rtc_delay) {
|
|
|
+ if (pdata && pdata->rtc_delay) {
|
|
|
info->lp3974_bug_workaround = true;
|
|
|
dev_warn(&pdev->dev, "LP3974 with RTC REGERR option."
|
|
|
" RTC updates will be extremely slow.\n");
|