]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/arm/virt: Drop #size-cells and #address-cells from gpio-keys dtb node
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 13 May 2022 13:13:16 +0000 (14:13 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 19 May 2022 15:19:03 +0000 (16:19 +0100)
commitafdcbddcc92ef75ed1905e6ae7aa00db06e86dfc
tree032838a724959a4332ed5be12601987c9f4ac2e8
parente8ca920f3d1cedf7f2ebb41d13cd4d5946d3d882
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
hw/arm/virt.c