From: Ricardo Ribalda Delgado Date: Mon, 30 Mar 2015 17:45:59 +0000 (-0700) Subject: leds/led-class: Handle LEDs with the same name X-Git-Tag: omap-for-v4.1/fixes-rc1~129^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a96aa64cb5723d941de879a9cd1fea025d6acb1b;p=pandora-kernel.git leds/led-class: Handle LEDs with the same name The current code expected that every LED had an unique name. This is a legit expectation when the device tree can no be modified or extended. But with device tree overlays this requirement can be easily broken. This patch finds out if the name is already in use and adds the suffix _1, _2... if not. Signed-off-by: Ricardo Ribalda Delgado Reported-by: Geert Uytterhoeven Signed-off-by: Bryan Wu --- Reading git-diff-tree failed