diff options
author | Peter Maydell | 2022-05-13 15:13:16 +0200 |
---|---|---|
committer | Peter Maydell | 2022-05-19 17:19:03 +0200 |
commit | afdcbddcc92ef75ed1905e6ae7aa00db06e86dfc (patch) | |
tree | 032838a724959a4332ed5be12601987c9f4ac2e8 /hw | |
parent | hw/arm/virt: Fix incorrect non-secure flash dtb node name (diff) | |
download | qemu-afdcbddcc92ef75ed1905e6ae7aa00db06e86dfc.tar.gz qemu-afdcbddcc92ef75ed1905e6ae7aa00db06e86dfc.tar.xz qemu-afdcbddcc92ef75ed1905e6ae7aa00db06e86dfc.zip |
hw/arm/virt: Drop #size-cells and #address-cells from gpio-keys dtb node
The virt board generates a gpio-keys node in the dtb, but it
incorrectly gives this node #size-cells and #address-cells
properties. If you dump the dtb with 'machine dumpdtb=file.dtb'
and run it through dtc, dtc will warn about this:
Warning (avoid_unnecessary_addr_size): /gpio-keys: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
Remove the bogus properties.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220513131316.4081539-3-peter.maydell@linaro.org
Diffstat (limited to 'hw')
-rw-r--r-- | hw/arm/virt.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 587e885a98..097238faa7 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -925,8 +925,6 @@ static void create_gpio_keys(char *fdt, DeviceState *pl061_dev, qemu_fdt_add_subnode(fdt, "/gpio-keys"); qemu_fdt_setprop_string(fdt, "/gpio-keys", "compatible", "gpio-keys"); - qemu_fdt_setprop_cell(fdt, "/gpio-keys", "#size-cells", 0); - qemu_fdt_setprop_cell(fdt, "/gpio-keys", "#address-cells", 1); qemu_fdt_add_subnode(fdt, "/gpio-keys/poweroff"); qemu_fdt_setprop_string(fdt, "/gpio-keys/poweroff", |