summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Le Goater2019-09-02 11:29:32 +0200
committerDavid Gibson2019-10-04 02:25:23 +0200
commitf42b6f535c290046d10aebf1796fb46957dfa8e6 (patch)
tree9e144fcddec91e7f8894a06859e40ffb5257e6dc
parentpseries: do not allow memory-less/cpu-less NUMA node (diff)
downloadqemu-f42b6f535c290046d10aebf1796fb46957dfa8e6.tar.gz
qemu-f42b6f535c290046d10aebf1796fb46957dfa8e6.tar.xz
qemu-f42b6f535c290046d10aebf1796fb46957dfa8e6.zip
ppc/pnv: fix "bmc" node name in DT
Fixes the dtc output : ERROR (node_name_chars): //bmc: Bad character '/' in node name Warning (avoid_unnecessary_addr_size): /bmc: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20190902092932.20200-1-clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r--hw/ppc/pnv_bmc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/ppc/pnv_bmc.c b/hw/ppc/pnv_bmc.c
index e5eb6e5a70..dc5e918cb7 100644
--- a/hw/ppc/pnv_bmc.c
+++ b/hw/ppc/pnv_bmc.c
@@ -77,13 +77,10 @@ void pnv_dt_bmc_sensors(IPMIBmc *bmc, void *fdt)
const struct ipmi_sdr_compact *sdr;
uint16_t nextrec;
- offset = fdt_add_subnode(fdt, 0, "/bmc");
+ offset = fdt_add_subnode(fdt, 0, "bmc");
_FDT(offset);
_FDT((fdt_setprop_string(fdt, offset, "name", "bmc")));
- _FDT((fdt_setprop_cell(fdt, offset, "#address-cells", 0x1)));
- _FDT((fdt_setprop_cell(fdt, offset, "#size-cells", 0x0)));
-
offset = fdt_add_subnode(fdt, offset, "sensors");
_FDT(offset);