Commit 2fcfdf56 authored by Peter Wächtler's avatar Peter Wächtler Committed by Linus Torvalds

[PATCH] oss/vwsnd.c - convert cli to spinlocks

parent 7a6316fd
...@@ -2917,7 +2917,7 @@ static int vwsnd_audio_mmap(struct file *file, struct vm_area_struct *vma) ...@@ -2917,7 +2917,7 @@ static int vwsnd_audio_mmap(struct file *file, struct vm_area_struct *vma)
static int vwsnd_audio_open(struct inode *inode, struct file *file) static int vwsnd_audio_open(struct inode *inode, struct file *file)
{ {
vwsnd_dev_t *devc; vwsnd_dev_t *devc;
dev_t minor = MINOR(inode->i_rdev); dev_t minor = minor(inode->i_rdev);
int sw_samplefmt; int sw_samplefmt;
DBGE("(inode=0x%p, file=0x%p)\n", inode, file); DBGE("(inode=0x%p, file=0x%p)\n", inode, file);
...@@ -3064,7 +3064,7 @@ static int vwsnd_mixer_open(struct inode *inode, struct file *file) ...@@ -3064,7 +3064,7 @@ static int vwsnd_mixer_open(struct inode *inode, struct file *file)
INC_USE_COUNT; INC_USE_COUNT;
for (devc = vwsnd_dev_list; devc; devc = devc->next_dev) for (devc = vwsnd_dev_list; devc; devc = devc->next_dev)
if (devc->mixer_minor == MINOR(inode->i_rdev)) if (devc->mixer_minor == minor(inode->i_rdev))
break; break;
if (devc == NULL) { if (devc == NULL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment