diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-04-25 08:28:47 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-04-25 12:35:04 +0200 |
commit | d1814d60501ea5c353198b481a619027e7afb09d (patch) | |
tree | b3929523776c154232efa5842d0ec040108654e4 /arch/arm/boards | |
parent | 13f3d7bb62c6c53c298e7d252e0a96bddd3b1956 (diff) | |
download | barebox-d1814d60501ea5c353198b481a619027e7afb09d.tar.gz barebox-d1814d60501ea5c353198b481a619027e7afb09d.tar.xz |
ARM: rpi: don't warn about lack of videocore fdt
When barebox is booted as generic second stage DT image, it will throw
an annoying but harmless error that the videocore FDT saved in PBL has
invalid magic. This is expected because the generic code doesn't store
the device tree, instead it passes it to barebox proper to probe from.
Storing the DT in /vd.dtb would thus just be duplication.
Remove the error message in this case.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220425062849.17954-3-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards')
-rw-r--r-- | arch/arm/boards/raspberry-pi/rpi-common.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/boards/raspberry-pi/rpi-common.c b/arch/arm/boards/raspberry-pi/rpi-common.c index 9aa150de56..82da4d6464 100644 --- a/arch/arm/boards/raspberry-pi/rpi-common.c +++ b/arch/arm/boards/raspberry-pi/rpi-common.c @@ -328,10 +328,8 @@ static void rpi_vc_fdt(void) return; } - if (magic != FDT_MAGIC) { - pr_err("videocore fdt saved in pbl has invalid magic\n"); + if (magic != FDT_MAGIC) return; - } size = be32_to_cpu(oftree->totalsize); if (write_file("/vc.dtb", saved_vc_fdt, size)) { |