X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Farm%2Fmach-shark%2Fleds.c;h=5386a81f796a07a9bbbd5eb89e9c7e24daba88d0;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=7a2d1e9081372ca379d0855e6e88a89dcdb58236;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/arch/arm/mach-shark/leds.c b/arch/arm/mach-shark/leds.c index 7a2d1e908..5386a81f7 100644 --- a/arch/arm/mach-shark/leds.c +++ b/arch/arm/mach-shark/leds.c @@ -1,5 +1,5 @@ /* - * arch/arm/kernel/leds-shark.c + * arch/arm/mach-shark/leds.c * by Alexander Schulz * * derived from: @@ -15,7 +15,6 @@ * * Changelog: */ -#include #include #include #include @@ -33,7 +32,7 @@ static char led_state; static short hw_led_state; static short saved_state; -static spinlock_t leds_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(leds_lock); short sequoia_read(int addr) { outw(addr,0x24);