patch-2.3.23 linux/arch/arm/kernel/leds-footbridge.c

Next file: linux/arch/arm/kernel/process.c
Previous file: linux/arch/arm/kernel/irq.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.22/linux/arch/arm/kernel/leds-footbridge.c linux/arch/arm/kernel/leds-footbridge.c
@@ -138,7 +138,7 @@
 	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,25 +223,19 @@
 {
 }
 
-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);
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)