X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Farm%2Fmach-shark%2Fleds.c;h=7bdeb70a0c10dbfb437423eac1ff31d0653891c9;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=7a2d1e9081372ca379d0855e6e88a89dcdb58236;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/arch/arm/mach-shark/leds.c b/arch/arm/mach-shark/leds.c index 7a2d1e908..7bdeb70a0 100644 --- a/arch/arm/mach-shark/leds.c +++ b/arch/arm/mach-shark/leds.c @@ -33,7 +33,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);