• Linus Walleij's avatar
    leds: syscon: instantiate from platform device · a917d4b4
    Linus Walleij authored
    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: default avatarBjorn Andersson <bjorn.andersson@sonymobile.com>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    a917d4b4
leds-syscon.c 4.21 KB