leds: syscon: instantiate from platform device
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 3 Mar 2015 09:08:19 +0000 (10:08 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 11 May 2015 06:55:03 +0000 (08:55 +0200)
commita917d4b44afc968d35e9b2717fea52946f512df1
treef634e3b7b8e3ac08c2eb6025b412976b635998ce
parent480aa74c386121644336d9b59d0b61cde1c3c29c
leds: syscon: instantiate from platform device

Currently syscon LEDs will traverse the device tree looking for syscon devices
and if found, traverse any subnodes of these to identify matching children
and from there instantiate LED class devices.

This is not a good use of the Linux device model. Instead we have converted the
device trees to add the "simple-mfd" property to the MFD nexi spawning syscon
LEDs so that these will appear as platform devices in the system and we can
use the proper device probing mechanism.

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/leds/leds-syscon.c