[PATCH 1/3] fixup! sandbox: hostfile: completely switch to OF based probing
Marc Kleine-Budde
mkl at pengutronix.de
Thu Mar 5 06:36:39 PST 2015
It makes no sense to put an address-cells and size-cells property in the
hostfile, as it will only affect sub-nodes.
Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
arch/sandbox/board/hostfile.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c
index c6fd80fd8761..41ded73a3a21 100644
--- a/arch/sandbox/board/hostfile.c
+++ b/arch/sandbox/board/hostfile.c
@@ -140,14 +140,6 @@ static int of_hostfile_fixup(struct device_node *root, void *ctx)
if (ret)
return ret;
- ret = of_property_write_u32(node, "#address-cells", 2);
- if (ret)
- return ret;
-
- ret = of_property_write_u32(node, "#size-cells", 1);
- if (ret)
- return ret;
-
ret = of_set_property(node, "compatible", hostfile_dt_ids->compatible,
strlen(hostfile_dt_ids->compatible) + 1, 1);
if (ret)
--
2.1.4
More information about the barebox
mailing list