]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: dts: socfpga: Remove unit name for LEDs in EBV SOCrates
authorFlorian Vaussard <florian.vaussard@gmail.com>
Mon, 27 Feb 2017 16:42:21 +0000 (10:42 -0600)
committerDinh Nguyen <dinguyen@kernel.org>
Mon, 6 Mar 2017 21:54:58 +0000 (15:54 -0600)
commitcfa6384a0128552b0db714c3061f81183772b0b3
treecdf3ba96a708e55b689ecdc724c829e872d793e1
parentfbc06b0e10b56c2a6bf76bef4466642f6b0e68c7
ARM: dts: socfpga: Remove unit name for LEDs in EBV SOCrates

GPIO LEDs in the Cyclone5 EBV SOCrates board have a unit name but no reg
property. Indeed, GPIO LEDs do not need such a property. They do not
need a unit name neither. This will trigger the following warnings when
compiled with W=1:

Node /gpio-leds/led@0 has a unit name, but no reg property
Node /gpio-leds/led@1 has a unit name, but no reg property
Node /gpio-leds/led@2 has a unit name, but no reg property

The solution is to remove the unit name. In order to have unique node
names, a rename is necessary. This should be harmless as all the LEDs
have a 'label' property, hence their name do not derive from the node
name and will stay the same after this patch.

Signed-off-by: Florian Vaussard <florian.vaussard@heig-vd.ch>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
arch/arm/boot/dts/socfpga_cyclone5_socrates.dts