summaryrefslogtreecommitdiffstats
path: root/arch/ppc
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2013-06-13 18:06:44 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-06-20 21:20:50 +0200
commit0b79c3bb641857f5045a42f55f0b90d160706425 (patch)
tree10ce0b10a34032f30d73337ea48b3f7cdbcffe34 /arch/ppc
parent905f3ee7fb79af91ed42275c995ca0cd04a2a3d6 (diff)
downloadbarebox-0b79c3bb641857f5045a42f55f0b90d160706425.tar.gz
barebox-0b79c3bb641857f5045a42f55f0b90d160706425.tar.xz
OF: base: sync of_find_node_by_path with linux OF API
Barebox of_find_node_by_path requires a node to be passed as start node to start searching. Linux OF API does not pass this node and no current user of it in barebox is passing anything else than the root node. Therefore, we rename current function to of_find_node_by_path_from and introduce a Linux OF API compatible of_find_node_by_path that always passes the current root_node. Also, all current users of that function are updated to reflect the API change. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc')
-rw-r--r--arch/ppc/mach-mpc5xxx/cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ppc/mach-mpc5xxx/cpu.c b/arch/ppc/mach-mpc5xxx/cpu.c
index 99f16ebf1d..0ece4a9ed9 100644
--- a/arch/ppc/mach-mpc5xxx/cpu.c
+++ b/arch/ppc/mach-mpc5xxx/cpu.c
@@ -83,7 +83,7 @@ static int of_mpc5200_fixup(struct device_node *root)
int div = in_8((void*)CFG_MBAR + 0x204) & 0x0020 ? 8 : 4;
- node = of_find_node_by_path(root, "/cpus/PowerPC,5200@0");
+ node = of_find_node_by_path("/cpus/PowerPC,5200@0");
if (!node)
return -EINVAL;
@@ -91,7 +91,7 @@ static int of_mpc5200_fixup(struct device_node *root)
of_property_write_u32(node, "bus-frequency", get_bus_clock());
of_property_write_u32(node, "clock-frequency", get_cpu_clock());
- node = of_find_node_by_path(root, "/soc5200@f0000000");
+ node = of_find_node_by_path("/soc5200@f0000000");
if (!node)
return -EINVAL;