summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2014-07-23 11:28:06 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-07-25 08:59:00 +0200
commit5f1c61079665fa4d647fa72f06534dd39eaf8040 (patch)
tree6ea421fdaf6c6d9e0ed7e5a9b610221d5cac89bc /arch
parentd0e0a9799e77f1e54c17114b436be084f98a369f (diff)
downloadbarebox-5f1c61079665fa4d647fa72f06534dd39eaf8040.tar.gz
barebox-5f1c61079665fa4d647fa72f06534dd39eaf8040.tar.xz
ARM: execute OF fixups early
Device trees can be passed by primary boot loader or appended to barebox binary. Unfortunately, before probing devices from such a device tree, no fixup can be applied. Add a call to of_fix_tree() right before probing devices to catch some very early fixups. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/dtb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/cpu/dtb.c b/arch/arm/cpu/dtb.c
index abc3ccb4c0..ae4ff2a9ad 100644
--- a/arch/arm/cpu/dtb.c
+++ b/arch/arm/cpu/dtb.c
@@ -50,6 +50,7 @@ static int of_arm_init(void)
root = of_unflatten_dtb(fdt);
if (root) {
of_set_root_node(root);
+ of_fix_tree(root);
if (IS_ENABLED(CONFIG_OFDEVICE))
of_probe();
}