]> git.sur5r.net Git - u-boot/commitdiff
libfdt: Move the working_fdt pointer to cmd_fdt.c
authorGerald Van Baren <vanbaren@cideas.com>
Wed, 11 Jun 2008 02:15:58 +0000 (22:15 -0400)
committerGerald Van Baren <vanbaren@cideas.com>
Wed, 11 Jun 2008 02:23:23 +0000 (22:23 -0400)
The working_fdt pointer was declared in common/fdt_support.c but was
not used there.  Move it to common/cmd_fdt.c where it is used (it is
also used in lib_ppc/bootm.c).

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
common/cmd_fdt.c
common/fdt_support.c

index 5c3a0bb7502aab38e19e7b82842fb985a9edc87b..97b9dd76caeaffdcb03d9b087456a0bf88ad9e34 100644 (file)
@@ -45,6 +45,11 @@ static int fdt_valid(void);
 static int fdt_parse_prop(char **newval, int count, char *data, int *len);
 static int fdt_print(const char *pathp, char *prop, int depth);
 
+/*
+ * The working_fdt points to our working flattened device tree.
+ */
+struct fdt_header *working_fdt;
+
 /*
  * Flattened Device Tree command, see the help for parameter definitions.
  */
index e8aa3e981880df685da11e5df48f0047c62b649b..e58b294ee58835d302e5decd8d319d9b4595ff27 100644 (file)
  */
 DECLARE_GLOBAL_DATA_PTR;
 
-/*
- * fdt points to our working device tree.
- */
-struct fdt_header *working_fdt;
-
 
 /**
  * fdt_find_and_setprop: Find a node and set it's property