Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: imx6dl-plybas: Fix gpio-keys W=1 warnings

Remove the unnecessary #address-cells/#size-cells and rename the node
names to fix the following W=1 dtc warnings:

arch/arm/boot/dts/imx6dl-plybas.dts:26.13-30.5: Warning (unit_address_vs_reg): /gpio_keys/button@20: node has a unit name, but no reg or ranges property
arch/arm/boot/dts/imx6dl-plybas.dts:32.13-36.5: Warning (unit_address_vs_reg): /gpio_keys/button@21: node has a unit name, but no reg or ranges property
arch/arm/boot/dts/imx6dl-plybas.dts:20.12-37.4: Warning (avoid_unnecessary_addr_size): /gpio_keys: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Fabio Estevam and committed by
Shawn Guo
2343e697 e0ece186

+2 -4
+2 -4
arch/arm/boot/dts/imx6dl-plybas.dts
··· 19 19 20 20 gpio_keys { 21 21 compatible = "gpio-keys"; 22 - #address-cells = <1>; 23 - #size-cells = <0>; 24 22 autorepeat; 25 23 26 - button@20 { 24 + button-start { 27 25 label = "START"; 28 26 linux,code = <31>; 29 27 gpios = <&gpio5 8 GPIO_ACTIVE_LOW>; 30 28 }; 31 29 32 - button@21 { 30 + button-clean { 33 31 label = "CLEAN"; 34 32 linux,code = <46>; 35 33 gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;