summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/highbank/init.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-02-26 12:14:36 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-03-06 11:41:29 +0100
commita51d06d67900547b68cc133c0d185937cea04fee (patch)
tree91e3c4a7a4c1dd5a69fdd60d500c736b03b4ee51 /arch/arm/boards/highbank/init.c
parent973e58e3abdc70f3d28c61961a4fc7b0acac0719 (diff)
downloadbarebox-a51d06d67900547b68cc133c0d185937cea04fee.tar.gz
barebox-a51d06d67900547b68cc133c0d185937cea04fee.tar.xz
of: remove unused libfdt
Now that we are completely independent of libfdt remove the unused code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/highbank/init.c')
-rw-r--r--arch/arm/boards/highbank/init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/boards/highbank/init.c b/arch/arm/boards/highbank/init.c
index bd32c1d7f9..d4a5c5acc3 100644
--- a/arch/arm/boards/highbank/init.c
+++ b/arch/arm/boards/highbank/init.c
@@ -16,7 +16,6 @@
#include <partition.h>
#include <sizes.h>
#include <io.h>
-#include <libfdt.h>
#include <of.h>
#define FIRMWARE_DTB_BASE 0x1000
@@ -124,7 +123,7 @@ static int highbank_devices_init(void)
highbank_register_xgmac(1);
} else {
fdt = of_get_fixed_tree(NULL);
- add_mem_device("dtb", (unsigned long)fdt, fdt_totalsize(fdt),
+ add_mem_device("dtb", (unsigned long)fdt, be32_to_cpu(fdt->totalsize),
IORESOURCE_MEM_WRITEABLE);
devfs_add_partition("ram0", FIRMWARE_DTB_BASE, SZ_64K, DEVFS_PARTITION_FIXED, "firmware-dtb");
}