[PATCH 3/5] leds: syscon: instantiate from platform device

Linus Walleij linus.walleij at linaro.org
Tue Mar 17 03:36:20 PDT 2015


On Tue, Mar 3, 2015 at 10:32 AM, Linus Walleij <linus.walleij at linaro.org> wrote:

> 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 at arndb.de>
> Cc: Lee Jones <lee.jones at linaro.org>
> Cc: Pawel Moll <pawel.moll at arm.com>
> Cc: Mark Rutland <mark.rutland at arm.com>
> Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
> ---
> Bryan: if you're OK with it, please ACK this patch so we can funnel it through
> ARM SoC with the rest of the patches in this series.

Bryan, ping.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list