Commit 2da11ba6 authored by William Hubbs's avatar William Hubbs Committed by Greg Kroah-Hartman

staging: speakup: devsynth: remove custom locking macros

Signed-off-by: default avatarWilliam Hubbs <w.d.hubbs@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c2d7f743
...@@ -30,9 +30,9 @@ static ssize_t speakup_file_write(struct file *fp, const char *buffer, ...@@ -30,9 +30,9 @@ static ssize_t speakup_file_write(struct file *fp, const char *buffer,
return -EFAULT; return -EFAULT;
count -= bytes; count -= bytes;
ptr += bytes; ptr += bytes;
spk_lock(flags); spin_lock_irqsave(&speakup_info.spinlock, flags);
synth_write(buf, bytes); synth_write(buf, bytes);
spk_unlock(flags); spin_unlock_irqrestore(&speakup_info.spinlock, flags);
} }
return (ssize_t) nbytes; return (ssize_t) nbytes;
} }
......
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