Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 470f30de authored by Felipe Balbi's avatar Felipe Balbi Committed by Tony Lindgren
Browse files

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: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent a35db9a4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);