of/irq: optimize device node matching loop in of_irq_init()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 24 Nov 2015 13:10:26 +0000 (22:10 +0900)
committerRob Herring <robh@kernel.org>
Wed, 9 Dec 2015 21:30:57 +0000 (15:30 -0600)
commit264041e3796133003f010303629a249f9caa3275
treebab7ea1e9572cc8cc0fccc226503bd653b740421
parente9e5f6365073b5f717172834986df8e2ec5a80b4
of/irq: optimize device node matching loop in of_irq_init()

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
at the same time, saving __of_match_node() callings.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/irq.c