diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2014-02-27 08:44:17 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-03-28 05:54:15 -0400 |
commit | 1dc7d8374dccf2815294ceb6a1092253f45ba860 (patch) | |
tree | beb594f2cc4adb185b4fd727a29c36860cdb2cfa | |
parent | e4ecf2bda239ddef5f4edd0e05d48bfdf88a475d (diff) |
ARM/leds: move ARM Versatile LED driver to leds subsystem
Now that we have converted this driver to a real platform device
module-based thing, we move the driver down into the LEDs
subsystem and rename the config option to LEDS_VERSATILE.
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Pawel Moll <pawel.moll@arm.com>
Acked-by: Bryan Wu <cooloney@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | arch/arm/plat-versatile/Kconfig | 6 | ||||
-rw-r--r-- | arch/arm/plat-versatile/Makefile | 1 | ||||
-rw-r--r-- | drivers/leds/Kconfig | 8 | ||||
-rw-r--r-- | drivers/leds/Makefile | 1 | ||||
-rw-r--r-- | drivers/leds/leds-versatile.c (renamed from arch/arm/plat-versatile/leds.c) | 0 |
5 files changed, 9 insertions, 7 deletions
diff --git a/arch/arm/plat-versatile/Kconfig b/arch/arm/plat-versatile/Kconfig index 2c4332b9f948..fce41e93b6a4 100644 --- a/arch/arm/plat-versatile/Kconfig +++ b/arch/arm/plat-versatile/Kconfig | |||
@@ -6,12 +6,6 @@ config PLAT_VERSATILE_CLOCK | |||
6 | config PLAT_VERSATILE_CLCD | 6 | config PLAT_VERSATILE_CLCD |
7 | bool | 7 | bool |
8 | 8 | ||
9 | config PLAT_VERSATILE_LEDS | ||
10 | def_bool y if NEW_LEDS | ||
11 | depends on ARCH_REALVIEW || ARCH_VERSATILE | ||
12 | select LEDS_CLASS | ||
13 | select LEDS_TRIGGERS | ||
14 | |||
15 | config PLAT_VERSATILE_SCHED_CLOCK | 9 | config PLAT_VERSATILE_SCHED_CLOCK |
16 | def_bool y | 10 | def_bool y |
17 | 11 | ||
diff --git a/arch/arm/plat-versatile/Makefile b/arch/arm/plat-versatile/Makefile index f88d448b629c..2e0c472958ae 100644 --- a/arch/arm/plat-versatile/Makefile +++ b/arch/arm/plat-versatile/Makefile | |||
@@ -2,6 +2,5 @@ ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include | |||
2 | 2 | ||
3 | obj-$(CONFIG_PLAT_VERSATILE_CLOCK) += clock.o | 3 | obj-$(CONFIG_PLAT_VERSATILE_CLOCK) += clock.o |
4 | obj-$(CONFIG_PLAT_VERSATILE_CLCD) += clcd.o | 4 | obj-$(CONFIG_PLAT_VERSATILE_CLCD) += clcd.o |
5 | obj-$(CONFIG_PLAT_VERSATILE_LEDS) += leds.o | ||
6 | obj-$(CONFIG_PLAT_VERSATILE_SCHED_CLOCK) += sched-clock.o | 5 | obj-$(CONFIG_PLAT_VERSATILE_SCHED_CLOCK) += sched-clock.o |
7 | obj-$(CONFIG_SMP) += headsmp.o platsmp.o | 6 | obj-$(CONFIG_SMP) += headsmp.o platsmp.o |
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index 72156c123033..93235f7378ba 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig | |||
@@ -487,6 +487,14 @@ config LEDS_BLINKM | |||
487 | This option enables support for the BlinkM RGB LED connected | 487 | This option enables support for the BlinkM RGB LED connected |
488 | through I2C. Say Y to enable support for the BlinkM LED. | 488 | through I2C. Say Y to enable support for the BlinkM LED. |
489 | 489 | ||
490 | config LEDS_VERSATILE | ||
491 | bool "LED support for the ARM Versatile and RealView" | ||
492 | depends on ARCH_REALVIEW || ARCH_VERSATILE | ||
493 | depends on LEDS_CLASS | ||
494 | help | ||
495 | This option enabled support for the LEDs on the ARM Versatile | ||
496 | and RealView boards. Say Y to enabled these. | ||
497 | |||
490 | comment "LED Triggers" | 498 | comment "LED Triggers" |
491 | source "drivers/leds/trigger/Kconfig" | 499 | source "drivers/leds/trigger/Kconfig" |
492 | 500 | ||
diff --git a/drivers/leds/Makefile b/drivers/leds/Makefile index 3cd76dbd9be2..8b4c956e11ba 100644 --- a/drivers/leds/Makefile +++ b/drivers/leds/Makefile | |||
@@ -54,6 +54,7 @@ obj-$(CONFIG_LEDS_ASIC3) += leds-asic3.o | |||
54 | obj-$(CONFIG_LEDS_MAX8997) += leds-max8997.o | 54 | obj-$(CONFIG_LEDS_MAX8997) += leds-max8997.o |
55 | obj-$(CONFIG_LEDS_LM355x) += leds-lm355x.o | 55 | obj-$(CONFIG_LEDS_LM355x) += leds-lm355x.o |
56 | obj-$(CONFIG_LEDS_BLINKM) += leds-blinkm.o | 56 | obj-$(CONFIG_LEDS_BLINKM) += leds-blinkm.o |
57 | obj-$(CONFIG_LEDS_VERSATILE) += leds-versatile.o | ||
57 | 58 | ||
58 | # LED SPI Drivers | 59 | # LED SPI Drivers |
59 | obj-$(CONFIG_LEDS_DAC124S085) += leds-dac124s085.o | 60 | obj-$(CONFIG_LEDS_DAC124S085) += leds-dac124s085.o |
diff --git a/arch/arm/plat-versatile/leds.c b/drivers/leds/leds-versatile.c index 80553022d661..80553022d661 100644 --- a/arch/arm/plat-versatile/leds.c +++ b/drivers/leds/leds-versatile.c | |||