/* On 34xx we can get occasional spurious interrupts if the ack from an interrupt handler does not get posted before we unmask. Warn about the interrupt handlers that need to flush posted writes.  */
static int omap_check_spurious(unsigned int irq)
/* On 34xx we can get occasional spurious interrupts if the ack from an interrupt handler does not get posted before we unmask. Warn about the interrupt handlers that need to flush posted writes.  */
static int omap_check_spurious(unsigned int irq)
{
	u32 sir, spurious;
	sir = intc_bank_read_reg(&irq_banks[0], INTC_SIR);
	spurious = sir >> 7;
	if (spurious) {
		printk(KERN_WARNING "Spurious irq %i: 0x%08x, please flush "
					"posted write for irq %i\n",
					irq, sir, previous_irq);
		return spurious;
	}
	return 0;
}