OSDN Git Service

ARM: dts: imx51-zii-rdu1: Add the unit addresses in sysled
authorFabio Estevam <fabio.estevam@nxp.com>
Mon, 4 Dec 2017 12:20:06 +0000 (10:20 -0200)
committerShawn Guo <shawnguo@kernel.org>
Tue, 26 Dec 2017 08:15:44 +0000 (16:15 +0800)
As described at Documentation/devicetree/bindings/mfd/mc13xxx.txt the
reg property is mandatory, so add the corresponding unit address in
order to fix the following build warnings with W=1:

arch/arm/boot/dts/imx51-zii-rdu1.dtb: Warning (unit_address_vs_reg): Node /soc/aips@70000000/spba@70000000/ecspi@70010000/pmic@0/leds/sysled0 has a reg or ranges property, but no unit name
arch/arm/boot/dts/imx51-zii-rdu1.dtb: Warning (unit_address_vs_reg): Node /soc/aips@70000000/spba@70000000/ecspi@70010000/pmic@0/leds/sysled1 has a reg or ranges property, but no unit name

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx51-zii-rdu1.dts

index f9fdb7c..70fdcdd 100644 (file)
                        #size-cells = <0>;
                        led-control = <0x0 0x0 0x3f83f8 0x0>;
 
-                       sysled0 {
+                       sysled0@3 {
                                reg = <3>;
                                label = "system:green:status";
                                linux,default-trigger = "default-on";
                        };
 
-                       sysled1 {
+                       sysled1@4 {
                                reg = <4>;
                                label = "system:green:act";
                                linux,default-trigger = "heartbeat";