Files
linux-apfs/drivers/rtc
Vladimir Zapolskiy 529af7d198 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>
2016-01-11 20:19:59 +01:00
..
2015-09-05 19:37:31 +02:00
2015-09-05 19:37:18 +02:00
2016-01-11 20:19:58 +01:00
2016-01-11 20:19:58 +01:00
2015-09-05 13:19:06 +02:00
2015-08-05 20:03:56 +08:00
2015-09-05 19:37:19 +02:00