If CONFIG_SPARSE_IRQ is set, the irqdescs will be allocated with NR_IRQS entries at boot time and thus will shift all the entries allocated dynamically by irq_alloc_descs for nothing. Set NR_IRQS to NR_IRQS_LEGACY if CONFIG_SPARSE_IRQ is set. Signed-off-by: Benoit Cousson <b-cousson@xxxxxx> --- arch/arm/plat-omap/include/plat/irqs.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/plat-omap/include/plat/irqs.h b/arch/arm/plat-omap/include/plat/irqs.h index 3d41a65..acc1ac8 100644 --- a/arch/arm/plat-omap/include/plat/irqs.h +++ b/arch/arm/plat-omap/include/plat/irqs.h @@ -438,7 +438,11 @@ #define OMAP_GPMC_IRQ_END (OMAP_GPMC_IRQ_BASE + OMAP_GPMC_NR_IRQS) +#ifdef CONFIG_SPARSE_IRQ +#define NR_IRQS NR_IRQS_LEGACY +#else #define NR_IRQS OMAP_GPMC_IRQ_END +#endif #define OMAP_IRQ_BIT(irq) (1 << ((irq) % 32)) -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html