diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2014-07-23 11:28:06 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-25 08:59:00 +0200 |
commit | 5f1c61079665fa4d647fa72f06534dd39eaf8040 (patch) | |
tree | 6ea421fdaf6c6d9e0ed7e5a9b610221d5cac89bc /arch | |
parent | d0e0a9799e77f1e54c17114b436be084f98a369f (diff) | |
download | barebox-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.c | 1 |
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(); } |