summaryrefslogtreecommitdiffstats
path: root/arch/sandbox
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2023-04-24 14:18:01 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-05-02 11:33:58 +0200
commit7236fc815b7fe9f01dad0cd08fa429f49994dcf3 (patch)
treef107501cceb47103d9e00e185137f0064116108b /arch/sandbox
parent5faba01e3248dbea15d58e46b395c791155a535e (diff)
downloadbarebox-7236fc815b7fe9f01dad0cd08fa429f49994dcf3.tar.gz
barebox-7236fc815b7fe9f01dad0cd08fa429f49994dcf3.tar.xz
sandbox: hostfile: don't warn on failed hostfile fixup
The node is not deleted, so the hostfile driver will probe the node in any case and error will just be printed twice. Thus drop the checks from the fixup. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Link: https://lore.barebox.org/20230424121805.150434-3-ahmad@a3f.at Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/board/hostfile.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c
index 436a7503be..424f16acd5 100644
--- a/arch/sandbox/board/hostfile.c
+++ b/arch/sandbox/board/hostfile.c
@@ -257,23 +257,14 @@ static int of_hostfile_map_fixup(struct device_node *root, void *ctx)
ret = linux_open_hostfile(&hf);
if (ret)
- goto out;
+ continue;
reg[0] = hf.base;
reg[1] = hf.size;
- ret = of_property_write_u64_array(node, "reg", reg, ARRAY_SIZE(reg));
- if (ret)
- goto out;
-
- ret = of_property_write_bool(node, "barebox,blockdev", hf.is_blockdev);
- if (ret)
- goto out;
-
- ret = of_property_write_u32(node, "barebox,fd", hf.fd);
-out:
- if (ret)
- pr_err("error fixing up %s: %pe\n", hf.devname, ERR_PTR(ret));
+ of_property_write_u64_array(node, "reg", reg, ARRAY_SIZE(reg));
+ of_property_write_bool(node, "barebox,blockdev", hf.is_blockdev);
+ of_property_write_u32(node, "barebox,fd", hf.fd);
}
return 0;