ARM: dts: vfxxx: Move nodes which have no reg property out of bus
authorFabio Estevam <fabio.estevam@nxp.com>
Wed, 29 Nov 2017 18:54:42 +0000 (16:54 -0200)
committerShawn Guo <shawnguo@kernel.org>
Tue, 26 Dec 2017 08:15:44 +0000 (16:15 +0800)
Move iio-hwmon node from soc node to root node.

iio-hwmon node does not have any register properties and thus
shouldn't be placed on the bus.

This fixes the following build warnings with W=1:

arch/arm/boot/dts/vf500-colibri-eval-v3.dtb: Warning (simple_bus_reg): Node /soc/iio-hwmon missing or empty reg/ranges property

Based on a patch from Simon Horman for the renesas r8a7795 dtsi.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/vfxxx.dtsi

index 5d654b5..c3f09b7 100644 (file)
                mask = <0x1000>;
        };
 
+       iio-hwmon {
+               compatible = "iio-hwmon";
+               io-channels = <&adc0 16>, <&adc1 16>;
+       };
+
        soc {
                #address-cells = <1>;
                #size-cells = <1>;
                                status = "disabled";
                        };
                };
-
-               iio-hwmon {
-                       compatible = "iio-hwmon";
-                       io-channels = <&adc0 16>, <&adc1 16>;
-               };
        };
 };