diff options
Diffstat (limited to 'arch/arm/mach-footbridge/netwinder-leds.c')
| -rw-r--r-- | arch/arm/mach-footbridge/netwinder-leds.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-footbridge/netwinder-leds.c b/arch/arm/mach-footbridge/netwinder-leds.c index 00269fe0be8a..e57102e871fc 100644 --- a/arch/arm/mach-footbridge/netwinder-leds.c +++ b/arch/arm/mach-footbridge/netwinder-leds.c | |||
| @@ -31,13 +31,13 @@ | |||
| 31 | static char led_state; | 31 | static char led_state; |
| 32 | static char hw_led_state; | 32 | static char hw_led_state; |
| 33 | 33 | ||
| 34 | static DEFINE_SPINLOCK(leds_lock); | 34 | static DEFINE_RAW_SPINLOCK(leds_lock); |
| 35 | 35 | ||
| 36 | static void netwinder_leds_event(led_event_t evt) | 36 | static void netwinder_leds_event(led_event_t evt) |
| 37 | { | 37 | { |
| 38 | unsigned long flags; | 38 | unsigned long flags; |
| 39 | 39 | ||
| 40 | spin_lock_irqsave(&leds_lock, flags); | 40 | raw_spin_lock_irqsave(&leds_lock, flags); |
| 41 | 41 | ||
| 42 | switch (evt) { | 42 | switch (evt) { |
| 43 | case led_start: | 43 | case led_start: |
| @@ -117,12 +117,12 @@ static void netwinder_leds_event(led_event_t evt) | |||
| 117 | break; | 117 | break; |
| 118 | } | 118 | } |
| 119 | 119 | ||
| 120 | spin_unlock_irqrestore(&leds_lock, flags); | 120 | raw_spin_unlock_irqrestore(&leds_lock, flags); |
| 121 | 121 | ||
| 122 | if (led_state & LED_STATE_ENABLED) { | 122 | if (led_state & LED_STATE_ENABLED) { |
| 123 | spin_lock_irqsave(&nw_gpio_lock, flags); | 123 | raw_spin_lock_irqsave(&nw_gpio_lock, flags); |
| 124 | nw_gpio_modify_op(GPIO_RED_LED | GPIO_GREEN_LED, hw_led_state); | 124 | nw_gpio_modify_op(GPIO_RED_LED | GPIO_GREEN_LED, hw_led_state); |
| 125 | spin_unlock_irqrestore(&nw_gpio_lock, flags); | 125 | raw_spin_unlock_irqrestore(&nw_gpio_lock, flags); |
| 126 | } | 126 | } |
| 127 | } | 127 | } |
| 128 | 128 | ||
