]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: mvebu: make use of of_find_matching_node_and_match
authorJosh Cartwright <joshc@codeaurora.org>
Tue, 11 Feb 2014 16:24:02 +0000 (10:24 -0600)
committerJason Cooper <jason@lakedaemon.net>
Tue, 11 Feb 2014 19:24:29 +0000 (19:24 +0000)
commita8cacc0a45f7d81e6ff1cfe92d38372c0718df9b
tree2f146810574005df607d8957944dbb4d776ce119
parentfee04e7f0a6cc45e915b2df4bd3cf07af1a464ec
ARM: mvebu: make use of of_find_matching_node_and_match

Instead of the of_find_matching_node()/of_match_node() pair, which requires two
iterations through the match table, make use of of_find_matching_node_and_match(),
which only iterates through the table once.

While we're here, mark the of_system_controller table const.

Signed-off-by: Josh Cartwright <joshc@codeaurora.org>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-mvebu/system-controller.c