summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-88pm860x.c
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vz@mleia.com>2015-12-02 08:10:28 +0200
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2016-01-11 20:19:59 +0100
commit529af7d1982562eafdc01760d44d990c7e3dcd82 (patch)
tree161d66aa2424c46514eabe319b72f3eedf631e99 /drivers/rtc/rtc-88pm860x.c
parentd5878a869fe8c272d3a843a47ef0716c91ba3e25 (diff)
downloadlinux-529af7d1982562eafdc01760d44d990c7e3dcd82.tar.bz2
rtc: lpc32xx: remove irq > NR_IRQS check from probe()
If the driver is used on an ARM platform with SPARSE_IRQ defined, semantics of NR_IRQS is different (minimal value of virtual irqs) and by default it is set to 16, see arch/arm/include/asm/irq.h. This value may be less than the actual number of virtual irqs, which may break the driver initialization. The check removal allows to use the driver on such a platform, and, if irq controller driver works correctly, the check is not needed on legacy platforms. Fixes a runtime problem: rtc-lpc32xx 40024000.rtc: Can't get interrupt resource Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-88pm860x.c')
0 files changed, 0 insertions, 0 deletions