]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/rtc/rtc-da9063.c
media: usb: dvb-usb-v2: anysee: convert to use i2c_new_client_device()
[linux.git] / drivers / rtc / rtc-da9063.c
index 15908d51b1cbbbf16b1d9e650497bb61399ef7b8..046b1d4c3daea95e973960481fd3a2dc1df7545c 100644 (file)
@@ -483,6 +483,9 @@ static int da9063_rtc_probe(struct platform_device *pdev)
                rtc->rtc_dev->uie_unsupported = 1;
 
        irq_alarm = platform_get_irq_byname(pdev, "ALARM");
+       if (irq_alarm < 0)
+               return irq_alarm;
+
        ret = devm_request_threaded_irq(&pdev->dev, irq_alarm, NULL,
                                        da9063_alarm_event,
                                        IRQF_TRIGGER_LOW | IRQF_ONESHOT,