]> git.sur5r.net Git - u-boot/blobdiff - board/mpc8360emds/mpc8360emds.c
Moved fdt command support code to fdt_support.c
[u-boot] / board / mpc8360emds / mpc8360emds.c
index deadb5ffbe2456ee4f9b0f9cb973ffb772d43eaa..5cabe47084d3be5dd57525b6b7e30b6aa0e10e3f 100644 (file)
@@ -664,19 +664,28 @@ U_BOOT_CMD(ecc, 4, 0, do_ecc,
 
 #if (defined(CONFIG_OF_FLAT_TREE) || defined(CONFIG_OF_LIBFDT)) \
      && defined(CONFIG_OF_BOARD_SETUP)
+
+/*
+ * Prototypes of functions that we use.
+ */
+void ft_cpu_setup(void *blob, bd_t *bd);
+
+#ifdef CONFIG_PCI
+void ft_pci_setup(void *blob, bd_t *bd);
+#endif
+
 void
 ft_board_setup(void *blob, bd_t *bd)
 {
 #if defined(CONFIG_OF_LIBFDT)
        int nodeoffset;
-       int err;
        int tmp[2];
 
        nodeoffset = fdt_path_offset (fdt, "/memory");
        if (nodeoffset >= 0) {
                tmp[0] = cpu_to_be32(bd->bi_memstart);
                tmp[1] = cpu_to_be32(bd->bi_memsize);
-               err = fdt_setprop(fdt, nodeoffset, "reg", tmp, sizeof(tmp));
+               fdt_setprop(fdt, nodeoffset, "reg", tmp, sizeof(tmp));
        }
 #else
        u32 *p;
@@ -694,4 +703,5 @@ ft_board_setup(void *blob, bd_t *bd)
 #endif
        ft_cpu_setup(blob, bd);
 }
-#endif
+#endif /* CONFIG_OF_x */
+