sound: oss: fix uninitialized spinlock
The spinlock lock in sound_timer.c is used without initialization. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
60f1deb595
commit
3182c8a72b
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ static unsigned long prev_event_time;
|
||||||
static volatile unsigned long usecs_per_tmr; /* Length of the current interval */
|
static volatile unsigned long usecs_per_tmr; /* Length of the current interval */
|
||||||
|
|
||||||
static struct sound_lowlev_timer *tmr;
|
static struct sound_lowlev_timer *tmr;
|
||||||
static spinlock_t lock;
|
static DEFINE_SPINLOCK(lock);
|
||||||
|
|
||||||
static unsigned long tmr2ticks(int tmr_value)
|
static unsigned long tmr2ticks(int tmr_value)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue