diff options
author | Eric Miao <eric.miao@marvell.com> | 2008-09-05 06:36:21 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-09-23 17:04:39 -0400 |
commit | 60cf711d47d995c3d61e222502fde3c11cedc434 (patch) | |
tree | 1f8daaaa055454691e123a091ac668590dfc0365 /arch/arm | |
parent | 6168cda927ecdf3347537e0d01618ca2a2272007 (diff) |
[ARM] pxa/corgi: use leds-gpio for led driving and drop leds-corgi
Now as the scoop pins are covered by the generic gpio API,
we can use leds-gpio driver instead of special leds-corgi
Drop leds-corgi.c and remove the declaration of now un-referenced
corgiscoop_device.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-pxa/corgi.c | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index da1e60190706..f8fd1d872157 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach-pxa/corgi.c | |||
@@ -271,13 +271,33 @@ static struct platform_device corgikbd_device = { | |||
271 | .id = -1, | 271 | .id = -1, |
272 | }; | 272 | }; |
273 | 273 | ||
274 | |||
275 | /* | 274 | /* |
276 | * Corgi LEDs | 275 | * Corgi LEDs |
277 | */ | 276 | */ |
277 | static struct gpio_led corgi_gpio_leds[] = { | ||
278 | { | ||
279 | .name = "corgi:amber:charge", | ||
280 | .default_trigger = "sharpsl-charge", | ||
281 | .gpio = CORGI_GPIO_LED_ORANGE, | ||
282 | }, | ||
283 | { | ||
284 | .name = "corgi:green:mail", | ||
285 | .default_trigger = "nand-disk", | ||
286 | .gpio = CORGI_GPIO_LED_GREEN, | ||
287 | }, | ||
288 | }; | ||
289 | |||
290 | static struct gpio_led_platform_data corgi_gpio_leds_info = { | ||
291 | .leds = corgi_gpio_leds, | ||
292 | .num_leds = ARRAY_SIZE(corgi_gpio_leds), | ||
293 | }; | ||
294 | |||
278 | static struct platform_device corgiled_device = { | 295 | static struct platform_device corgiled_device = { |
279 | .name = "corgi-led", | 296 | .name = "leds-gpio", |
280 | .id = -1, | 297 | .id = -1, |
298 | .dev = { | ||
299 | .platform_data = &corgi_gpio_leds_info, | ||
300 | }, | ||
281 | }; | 301 | }; |
282 | 302 | ||
283 | /* | 303 | /* |