[ARM] 4973/1: Tosa: use leds-gpio driver.

Now as the scoop pins are covered by the generic gpio API,
we can use leds-gpio driver instead of special leds-tosa.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
Dmitry Baryshkov
2008-04-19 11:29:08 +01:00
committed by Russell King
parent d4e7d09f7a
commit 311c736c19
2 changed files with 26 additions and 6 deletions
+23 -2
View File
@@ -421,9 +421,30 @@ static struct platform_device tosa_gpio_keys_device = {
/*
* Tosa LEDs
*/
struct gpio_led tosa_gpio_leds[] = {
{
.name = "tosa:amber:charge",
.default_trigger = "main-battery-charging",
.gpio = TOSA_GPIO_CHRG_ERR_LED,
},
{
.name = "tosa:green:mail",
.default_trigger = "nand-disk",
.gpio = TOSA_GPIO_NOTE_LED,
},
};
struct gpio_led_platform_data tosa_gpio_leds_platform_data = {
.leds = tosa_gpio_leds,
.num_leds = ARRAY_SIZE(tosa_gpio_leds),
};
static struct platform_device tosaled_device = {
.name = "tosa-led",
.id = -1,
.name = "leds-gpio",
.id = -1,
.dev = {
.platform_data = &tosa_gpio_leds_platform_data,
},
};
static struct platform_device *devices[] __initdata = {