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)
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