diff options
author | Gerald Van Baren <vanbaren@cideas.com> | 2008-06-10 22:15:58 -0400 |
---|---|---|
committer | Gerald Van Baren <vanbaren@cideas.com> | 2008-06-10 22:23:23 -0400 |
commit | ae9e97fa96f643c8ba2b666b06a026cc8717eb00 (patch) | |
tree | ec8e66306bc821bd3f4d61b44e0365ff77df5156 /common/cmd_fdt.c | |
parent | e489b9c078e22b0d9e75f002cd2a1bd967e88f5e (diff) |
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 <vanbaren@cideas.com>
Diffstat (limited to 'common/cmd_fdt.c')
-rw-r--r-- | common/cmd_fdt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c index 5c3a0bb7502..97b9dd76cae 100644 --- a/common/cmd_fdt.c +++ b/common/cmd_fdt.c @@ -46,6 +46,11 @@ 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. */ int do_fdt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) |