From ae9e97fa96f643c8ba2b666b06a026cc8717eb00 Mon Sep 17 00:00:00 2001 From: Gerald Van Baren Date: Tue, 10 Jun 2008 22:15:58 -0400 Subject: libfdt: Move the working_fdt pointer to cmd_fdt.c 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 --- common/cmd_fdt.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common/cmd_fdt.c') diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c index 5c3a0bb750..97b9dd76ca 100644 --- a/common/cmd_fdt.c +++ b/common/cmd_fdt.c @@ -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. */ -- cgit v1.2.1