Re: [PATCH] of/irq: optimize device node matching loop in of_irq_init()

2015-12-06 Thread Rob Herring
On Tue, Nov 24, 2015 at 7:10 AM, Masahiro Yamada wrote: > Currently, of_irq_init() iterates over interrupt controller nodes > with for_each_matching_node(), and then gets each init function with > of_match_node() later. > > This routine can be optimized with for_each_matching_node_and_match(). > I

[PATCH] of/irq: optimize device node matching loop in of_irq_init()

2015-11-24 Thread Masahiro Yamada
Currently, of_irq_init() iterates over interrupt controller nodes with for_each_matching_node(), and then gets each init function with of_match_node() later. This routine can be optimized with for_each_matching_node_and_match(). It allows to get the interrupt controller node and its init function