ARM: plat-versatile: convert LEDs to platform device
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 27 Feb 2014 13:29:22 +0000 (14:29 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 27 Feb 2014 13:56:19 +0000 (14:56 +0100)
commite4ecf2bda239ddef5f4edd0e05d48bfdf88a475d
treecda31855444c116394cec653eef7ffbc833823b9
parentd1cb3ecf327066137fb6245b13030cde60241dd6
ARM: plat-versatile: convert LEDs to platform device

The LEDs were initialized unconditionally with an fs_initcall()
which doesn't play well with multiplatform. Convert the driver
to a platform device and convert all boards with these LEDs
to register a platform device and pass the register as a
resource instead.

Tested successfully on the Versatile/AB and RealView PB1176.

Cc: Bryan Wu <cooloney@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-realview/core.c
arch/arm/mach-realview/core.h
arch/arm/mach-realview/realview_eb.c
arch/arm/mach-realview/realview_pb1176.c
arch/arm/mach-realview/realview_pb11mp.c
arch/arm/mach-realview/realview_pba8.c
arch/arm/mach-realview/realview_pbx.c
arch/arm/mach-versatile/core.c
arch/arm/plat-versatile/leds.c
This page took 0.093687 seconds and 5 git commands to generate.