From: Fabio Estevam Date: Thu, 4 Dec 2014 01:28:19 +0000 (+0100) Subject: leds: leds-gpio: Fix multiple instances registration without 'label' property X-Git-Tag: omap-for-v3.19/fixes-rc1~136^2~9^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29470ea8d828e4dec74e94f7f17b7479ff5ef276;p=pandora-kernel.git 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 Signed-off-by: Fabio Estevam Acked-by: Grant Likely Acked-by: Bryan Wu Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed