diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-12-04 02:28:19 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2015-09-18 14:19:28 +0200 |
commit | fdcc023a193b716a860150bd618814d54a8d1cc7 (patch) | |
tree | 7a0c67c5f5217c104fdf51717a501929cf258317 /arch/mips/sgi-ip22 | |
parent | 0af9b8ce16daa1dd51828484be2b8a2d1b40ed6f (diff) |
leds: leds-gpio: Fix multiple instances registration without 'label' property
Since commit a43f2cbbb009f96 ("leds: leds-gpio: Make use of device property
API") it is no longer possible to register multiple gpio leds without passing
the 'label' property.
According to Documentation/devicetree/bindings/leds/common.txt:
"Optional properties for child nodes:
- label : The label for this LED. If omitted, the label is
taken from the node name (excluding the unit address)."
So retrieve the node name when the 'label' property is absent to keep the old
behaviour and fix this regression.
Fixes: a43f2cbbb009 (leds: leds-gpio: Make use of device property API)
Reported-by: Jean-Michel Hautbois <jean-michel.hautbois@vodalys.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
Acked-by: Bryan Wu <cooloney@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 29470ea8d828e4dec74e94f7f17b7479ff5ef276)
Diffstat (limited to 'arch/mips/sgi-ip22')
0 files changed, 0 insertions, 0 deletions