davinci: Use generic irq chip

Nori, Sekhar nsekhar at ti.com
Mon Apr 25 02:50:33 EDT 2011


Hi Thomas,

On Sun, Apr 17, 2011 at 02:44:08, Thomas Gleixner wrote:
> Simple conversion which simply uses the fact that the second irq chip
> base address has offset 0x04 to the first one.
> 
> Signed-off-by: Thomas Gleixner <tglx at linutronix.de>

Boot tested it on a DM365 EVM.

Tested-by: Sekhar Nori <nsekhar at ti.com>

> @@ -152,13 +103,8 @@ void __init davinci_irq_init(void)
>  		davinci_irq_writel(pri, i);
>  	}
>  
> -	/* set up genirq dispatch for ARM INTC */
> -	for (i = 0; i < davinci_soc_info.intc_irq_num; i++) {
> -		irq_set_chip(i, &davinci_irq_chip_0);
> -		set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
> -		if (i != IRQ_TINT1_TINT34)
> -			irq_set_handler(i, handle_edge_irq);
> -		else
> -			irq_set_handler(i, handle_level_irq);
> -	}
> +	for (i = 0, j= 0; i < davinci_soc_info.intc_irq_num; i += 32, j += 0x04)
                   ^
There is a space needed before the '=' as pointed by checkpatch.

Thanks,
Sekhar




More information about the linux-arm-kernel mailing list