]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - sound/oss/sound_timer.c
sound: oss: fix uninitialized spinlock
[net-next-2.6.git] / sound / oss / sound_timer.c
index f0f0c19fbff7a75c4e5ad561d18ce9f970775e97..48cda6c4c257b34d191d3512ff52658de4329669 100644 (file)
@@ -26,7 +26,7 @@ static unsigned long prev_event_time;
 static volatile unsigned long usecs_per_tmr;   /* Length of the current interval */
 
 static struct sound_lowlev_timer *tmr;
-static spinlock_t lock;
+static DEFINE_SPINLOCK(lock);
 
 static unsigned long tmr2ticks(int tmr_value)
 {