summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/oftree.c9
-rw-r--r--common/oftree.c2
-rw-r--r--include/of.h2
3 files changed, 1 insertions, 12 deletions
diff --git a/commands/oftree.c b/commands/oftree.c
index b9d3c7bf22..17af9eb581 100644
--- a/commands/oftree.c
+++ b/commands/oftree.c
@@ -62,8 +62,6 @@ static int do_oftree(int argc, char *argv[])
}
break;
case 'f':
- free(barebox_fdt);
- barebox_fdt = NULL;
return 0;
case 'n':
node = optarg;
@@ -88,12 +86,7 @@ static int do_oftree(int argc, char *argv[])
fdt_print(fdt, node);
free(fdt);
} else {
- if (barebox_fdt) {
- fdt_print(barebox_fdt, node);
- return 0;
- } else {
- return 1;
- }
+ return 1;
}
return 0;
}
diff --git a/common/oftree.c b/common/oftree.c
index 0dd6d5c3e4..d699cb6cf1 100644
--- a/common/oftree.c
+++ b/common/oftree.c
@@ -246,8 +246,6 @@ int fdt_get_path_or_create(struct fdt_header *fdt, const char *path)
return nodeoffset;
}
-struct fdt_header *barebox_fdt;
-
static int of_fixup_bootargs(struct fdt_header *fdt)
{
int nodeoffset;
diff --git a/include/of.h b/include/of.h
index dfc1b38e39..2c0af52d8f 100644
--- a/include/of.h
+++ b/include/of.h
@@ -5,8 +5,6 @@
#include <errno.h>
#include <asm/byteorder.h>
-extern struct fdt_header *barebox_fdt;
-
int fdt_print(struct fdt_header *working_fdt, const char *pathp);
struct fdt_header *of_get_fixed_tree(struct fdt_header *fdt);