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

Commit 6bd0f16e authored by Felipe Balbi's avatar Felipe Balbi Committed by Tony Lindgren
Browse files

irqchip: omap-intc: minor improvement to omap_irq_pending()



We already hold the number of Pending registers
in omap_nr_pending. Let's use that instead.

Acked-by: default avatarJason Cooper <jason@lakedaemon.net>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 8598066c
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -174,11 +174,10 @@ static void __init omap_irq_soft_reset(void)

int omap_irq_pending(void)
{
	int irq;
	int i;

	for (irq = 0; irq < omap_nr_irqs; irq += 32)
		if (intc_readl(INTC_PENDING_IRQ0 +
					((irq >> 5) << 5)))
	for (i = 0; i < omap_nr_pending; i++)
		if (intc_readl(INTC_PENDING_IRQ0 + (0x20 * i)))
			return 1;
	return 0;
}