diff options
author | Jonathan McDowell <noodles@earth.li> | 2006-06-23 05:05:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-23 10:43:05 -0400 |
commit | 9becde79d2c5e382d955167c07017b5e34b142f0 (patch) | |
tree | fb2f84658cf9a8d7c4089262bd545fa809ef84da /arch | |
parent | 83d4e6e7fba0b2a01092f0cf14ba2e33bd1253e9 (diff) |
[PATCH] leds: Amstrad Delta LED support
Use the new LED infrastructure to support the 6 LEDs present on the Amstrad
Delta.
[akpm@osdl.org: cleanup]
Signed-off-by: Jonathan McDowell <noodles@earth.li>
Ackde-by: Richard Purdie <rpurdie@rpsys.net>
Cc: Ben Dooks <ben@fluff.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap1/board-ams-delta.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c index 6178f046f128..73df32aac4c4 100644 --- a/arch/arm/mach-omap1/board-ams-delta.c +++ b/arch/arm/mach-omap1/board-ams-delta.c | |||
@@ -84,6 +84,15 @@ static struct omap_board_config_kernel ams_delta_config[] = { | |||
84 | { OMAP_TAG_UART, &ams_delta_uart_config }, | 84 | { OMAP_TAG_UART, &ams_delta_uart_config }, |
85 | }; | 85 | }; |
86 | 86 | ||
87 | static struct platform_device ams_delta_led_device = { | ||
88 | .name = "ams-delta-led", | ||
89 | .id = -1 | ||
90 | }; | ||
91 | |||
92 | static struct platform_device *ams_delta_devices[] __initdata = { | ||
93 | &ams_delta_led_device, | ||
94 | }; | ||
95 | |||
87 | static void __init ams_delta_init(void) | 96 | static void __init ams_delta_init(void) |
88 | { | 97 | { |
89 | iotable_init(ams_delta_io_desc, ARRAY_SIZE(ams_delta_io_desc)); | 98 | iotable_init(ams_delta_io_desc, ARRAY_SIZE(ams_delta_io_desc)); |
@@ -94,6 +103,8 @@ static void __init ams_delta_init(void) | |||
94 | 103 | ||
95 | /* Clear latch2 (NAND, LCD, modem enable) */ | 104 | /* Clear latch2 (NAND, LCD, modem enable) */ |
96 | ams_delta_latch2_write(~0, 0); | 105 | ams_delta_latch2_write(~0, 0); |
106 | |||
107 | platform_add_devices(ams_delta_devices, ARRAY_SIZE(ams_delta_devices)); | ||
97 | } | 108 | } |
98 | 109 | ||
99 | static void __init ams_delta_map_io(void) | 110 | static void __init ams_delta_map_io(void) |