diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-12-06 03:25:16 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-12-13 04:12:07 -0500 |
commit | 70d13e083c8589dd3edc2313777655da39cb3568 (patch) | |
tree | 41478a4699b3cbc8c5598ccc1863ea058948741e /arch/arm/mach-footbridge/netwinder-leds.c | |
parent | 7ec80ddf0455ff3854a5ca524952d91b5eb676b2 (diff) |
[ARM] netwinder: clean up GPIO naming
Netwinder was using gpio_xxx names which could clash with the GPIO
layer. Add a 'nw_' prefix to ensure that these remain separate.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-footbridge/netwinder-leds.c')
-rw-r--r-- | arch/arm/mach-footbridge/netwinder-leds.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/mach-footbridge/netwinder-leds.c b/arch/arm/mach-footbridge/netwinder-leds.c index d91a4f4a32dc..00269fe0be8a 100644 --- a/arch/arm/mach-footbridge/netwinder-leds.c +++ b/arch/arm/mach-footbridge/netwinder-leds.c | |||
@@ -32,7 +32,6 @@ 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_SPINLOCK(leds_lock); |
35 | extern spinlock_t gpio_lock; | ||
36 | 35 | ||
37 | static void netwinder_leds_event(led_event_t evt) | 36 | static void netwinder_leds_event(led_event_t evt) |
38 | { | 37 | { |
@@ -121,9 +120,9 @@ static void netwinder_leds_event(led_event_t evt) | |||
121 | spin_unlock_irqrestore(&leds_lock, flags); | 120 | spin_unlock_irqrestore(&leds_lock, flags); |
122 | 121 | ||
123 | if (led_state & LED_STATE_ENABLED) { | 122 | if (led_state & LED_STATE_ENABLED) { |
124 | spin_lock_irqsave(&gpio_lock, flags); | 123 | spin_lock_irqsave(&nw_gpio_lock, flags); |
125 | 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); |
126 | spin_unlock_irqrestore(&gpio_lock, flags); | 125 | spin_unlock_irqrestore(&nw_gpio_lock, flags); |
127 | } | 126 | } |
128 | } | 127 | } |
129 | 128 | ||