]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Dec 2020 07:51:44 +0000 (08:51 +0100)
commit20939c1906ff9edadfd0ff40c72525659cce87b5
treee3d1eece51e0059fc04675e3e995dc55eff8aa17
parent9608feee5733703c1cb201d7a689f90934232f1e
rtc: pcf2127: fix a bug when not specify interrupts property

commit 35425bafc772ee189e3c3790d7c672b80ba65909 upstream.

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
Cc: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/rtc/rtc-pcf2127.c