summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/leds-footbridge.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-01-27 01:05:20 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-01-27 01:05:20 +0000
commit546db14ee74118296f425f3b91634fb767d67290 (patch)
tree22b613a3da8d4bf663eec5e155af01b87fdf9094 /arch/arm/kernel/leds-footbridge.c
parent1e25e41c4f5474e14452094492dbc169b800e4c8 (diff)
Merge with Linux 2.3.23. The new bootmem stuff has broken various
platforms. At this time I've only verified that IP22 support compiles and IP27 actually works.
Diffstat (limited to 'arch/arm/kernel/leds-footbridge.c')
-rw-r--r--arch/arm/kernel/leds-footbridge.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/arch/arm/kernel/leds-footbridge.c b/arch/arm/kernel/leds-footbridge.c
index 6b4cb001b..90f2fe109 100644
--- a/arch/arm/kernel/leds-footbridge.c
+++ b/arch/arm/kernel/leds-footbridge.c
@@ -138,7 +138,7 @@ static void __netwinder_text netwinder_leds_event(led_event_t evt)
switch (evt) {
case led_start:
led_state |= LED_STATE_ENABLED;
- hw_led_state = 0;
+ hw_led_state = GPIO_GREEN_LED;
break;
case led_stop:
@@ -223,26 +223,20 @@ static void dummy_leds_event(led_event_t evt)
{
}
-void __init
+static void __init
init_leds_event(led_event_t evt)
{
- switch (machine_arch_type) {
+ leds_event = dummy_leds_event;
+
#ifdef CONFIG_FOOTBRIDGE
- case MACH_TYPE_EBSA285:
- case MACH_TYPE_CO285:
+ if (machine_is_ebsa285() || machine_is_co285())
leds_event = ebsa285_leds_event;
- break;
#endif
#ifdef CONFIG_ARCH_NETWINDER
- case MACH_TYPE_NETWINDER:
+ if (machine_is_netwinder())
leds_event = netwinder_leds_event;
- break;
#endif
- default:
- leds_event = dummy_leds_event;
- }
-
leds_event(evt);
}