summaryrefslogtreecommitdiff
path: root/board/mpc8360emds/mpc8360emds.c
diff options
context:
space:
mode:
authorJerry Van Baren <gvb.uboot@gmail.com>2007-07-04 21:27:30 -0400
committerKim Phillips <kim.phillips@freescale.com>2007-08-10 01:12:03 -0500
commit26d02c9bbac1751c5e19294f000100b48d43a920 (patch)
tree0e54fdfc94ee0c3fd33e8d6861625700b58e12ae /board/mpc8360emds/mpc8360emds.c
parent9be39a67c9f8fef7107f5df09d673005f04d0963 (diff)
downloadu-boot-imx-26d02c9bbac1751c5e19294f000100b48d43a920.zip
u-boot-imx-26d02c9bbac1751c5e19294f000100b48d43a920.tar.gz
u-boot-imx-26d02c9bbac1751c5e19294f000100b48d43a920.tar.bz2
mpc83xx: Replace fdt_node_offset() with fdt_find_node_by_path().
The new name matches more closely the kernel's name, which is also a much better description. These are the mpc83xx changes made necessary by the function name change. Signed-off-by: Wolfgang Grandegger <wg@grandegger.com> Acked-by: Gerald Van Baren <vanbaren@cideas.com> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'board/mpc8360emds/mpc8360emds.c')
-rw-r--r--board/mpc8360emds/mpc8360emds.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/board/mpc8360emds/mpc8360emds.c b/board/mpc8360emds/mpc8360emds.c
index de4ca1e..f63d3ae 100644
--- a/board/mpc8360emds/mpc8360emds.c
+++ b/board/mpc8360emds/mpc8360emds.c
@@ -30,8 +30,7 @@
#endif
#if defined(CONFIG_OF_FLAT_TREE)
#include <ft_build.h>
-#endif
-#if defined(CONFIG_OF_LIBFDT)
+#elif defined(CONFIG_OF_LIBFDT)
#include <libfdt.h>
#include <libfdt_env.h>
#endif
@@ -683,7 +682,7 @@ ft_board_setup(void *blob, bd_t *bd)
int nodeoffset;
int tmp[2];
- nodeoffset = fdt_path_offset (fdt, "/memory");
+ nodeoffset = fdt_find_node_by_path(fdt, "/memory");
if (nodeoffset >= 0) {
tmp[0] = cpu_to_be32(bd->bi_memstart);
tmp[1] = cpu_to_be32(bd->bi_memsize);