diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/rtc/rtc-max77686.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-max77686.c b/drivers/rtc/rtc-max77686.c index 7bb543344369..55396bb3de21 100644 --- a/drivers/rtc/rtc-max77686.c +++ b/drivers/rtc/rtc-max77686.c | |||
@@ -466,6 +466,12 @@ static int max77686_rtc_probe(struct platform_device *pdev) | |||
466 | goto err_rtc; | 466 | goto err_rtc; |
467 | } | 467 | } |
468 | 468 | ||
469 | if (!max77686->rtc_irq_data) { | ||
470 | ret = -EINVAL; | ||
471 | dev_err(&pdev->dev, "%s: no RTC regmap IRQ chip\n", __func__); | ||
472 | goto err_rtc; | ||
473 | } | ||
474 | |||
469 | info->virq = regmap_irq_get_virq(max77686->rtc_irq_data, | 475 | info->virq = regmap_irq_get_virq(max77686->rtc_irq_data, |
470 | MAX77686_RTCIRQ_RTCA1); | 476 | MAX77686_RTCIRQ_RTCA1); |
471 | if (!info->virq) { | 477 | if (!info->virq) { |