X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sound%2Foss%2Fsys_timer.c;h=c9d04518b1722e95e93fc8c832a89f8df4ea084e;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=3b7fa02cb29b25e4069bf5012f607a68a0b9c4f1;hpb=9213980e6a70d8473e0ffd4b39ab5b6caaba9ff5;p=linux-2.6.git diff --git a/sound/oss/sys_timer.c b/sound/oss/sys_timer.c index 3b7fa02cb..c9d04518b 100644 --- a/sound/oss/sys_timer.c +++ b/sound/oss/sys_timer.c @@ -27,9 +27,8 @@ static volatile unsigned long next_event_time; static unsigned long prev_event_time; static void poll_def_tmr(unsigned long dummy); -static spinlock_t lock=SPIN_LOCK_UNLOCKED; - -static struct timer_list def_tmr = TIMER_INITIALIZER(poll_def_tmr, 0, 0); +static DEFINE_SPINLOCK(lock); +static DEFINE_TIMER(def_tmr, poll_def_tmr, 0, 0); static unsigned long tmr2ticks(int tmr_value)