rtc: pcf2127: fix a bug when not specify interrupts property
authorBiwen Li <biwen.li@nxp.com>
Tue, 15 Sep 2020 07:32:09 +0000 (15:32 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 15 Sep 2020 10:25:44 +0000 (12:25 +0200)
commit35425bafc772ee189e3c3790d7c672b80ba65909
treead495e8ce90721ec8c366d21704e87408da5845e
parent9f8010e71f091b0609452742cfed4650ee633c44
rtc: pcf2127: fix a bug when not specify interrupts property

Fix a bug when not specify interrupts property in dts
as follows,
    rtc-pcf2127-i2c 1-0051: failed to request alarm irq
    rtc-pcf2127-i2c: probe of 1-0051 failed with error -22

Signed-off-by: Biwen Li <biwen.li@nxp.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20200915073213.12779-1-biwen.li@oss.nxp.com
drivers/rtc/rtc-pcf2127.c