From: Felipe Balbi Date: Tue, 9 Sep 2014 00:54:47 +0000 (-0700) Subject: arm: omap: irq: use compatible flag to figure out number of IRQ lines X-Git-Tag: v3.18-rc1~118^2~10^2~12 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=470f30deaeb870dcc65d2357fbb675deb3e779de;p=karo-tx-linux.git arm: omap: irq: use compatible flag to figure out number of IRQ lines so far, only am33xx has 128 lines, all other devices have only 96. Signed-off-by: Felipe Balbi Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c index 97845df61030..7a4ead3684d9 100644 --- a/arch/arm/mach-omap2/irq.c +++ b/arch/arm/mach-omap2/irq.c @@ -310,6 +310,9 @@ static int __init intc_of_init(struct device_node *node, return -EINVAL; } + if (of_device_is_compatible(node, "ti,am33xx-intc")) + nr_irq = 128; + if (of_property_read_u32(node, "ti,intc-size", &nr_irq)) pr_warn("unable to get intc-size, default to %d\n", nr_irq);