summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/highbank/init.c
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2013-06-13 20:16:31 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-06-20 21:20:55 +0200
commite520a8cc463760d21890b35218e4dac817e7c7e7 (patch)
tree0a715fd83fcfaf9be8e1c2a1a0528fef328ea50d /arch/arm/boards/highbank/init.c
parent2fe4a860eb856a4b4218983497d30b4d5c356e98 (diff)
downloadbarebox-e520a8cc463760d21890b35218e4dac817e7c7e7.tar.gz
barebox-e520a8cc463760d21890b35218e4dac817e7c7e7.tar.xz
OF: base: remove of_tree_for_each_node from public API
This patch converts users of of_tree_for_each_node to recently added for_eacg_compatible_node helper. Also of_tree_for_each_node is removed from public OF API. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Diffstat (limited to 'arch/arm/boards/highbank/init.c')
-rw-r--r--arch/arm/boards/highbank/init.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/arch/arm/boards/highbank/init.c b/arch/arm/boards/highbank/init.c
index 1aa713b163..46ecc88e47 100644
--- a/arch/arm/boards/highbank/init.c
+++ b/arch/arm/boards/highbank/init.c
@@ -35,19 +35,15 @@ static int hb_fixup(struct device_node *root)
__be32 latency;
if (!(reg & HB_PWRDOM_STAT_SATA)) {
- of_tree_for_each_node(node, root) {
- if (of_device_is_compatible(node, "calxeda,hb-ahci"))
- of_set_property(node, "status", "disabled",
- sizeof("disabled"), 1);
- }
+ for_each_compatible_node(node, NULL, "calxeda,hb-ahci")
+ of_set_property(node, "status", "disabled",
+ sizeof("disabled"), 1);
}
if (!(reg & HB_PWRDOM_STAT_EMMC)) {
- of_tree_for_each_node(node, root) {
- if (of_device_is_compatible(node, "calxeda,hb-sdhci"))
- of_set_property(node, "status", "disabled",
- sizeof("disabled"), 1);
- }
+ for_each_compatible_node(node, NULL, "calxeda,hb-sdhci")
+ of_set_property(node, "status", "disabled",
+ sizeof("disabled"), 1);
}
if ((opp_table[0] >> 16) != HB_OPP_VERSION)