mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 04:19:23 -04:00
staging: speakup: devsynth: remove custom locking macros
Signed-off-by: William Hubbs <w.d.hubbs@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c2d7f7430f
commit
2da11ba637
@@ -30,9 +30,9 @@ static ssize_t speakup_file_write(struct file *fp, const char *buffer,
|
||||
return -EFAULT;
|
||||
count -= bytes;
|
||||
ptr += bytes;
|
||||
spk_lock(flags);
|
||||
spin_lock_irqsave(&speakup_info.spinlock, flags);
|
||||
synth_write(buf, bytes);
|
||||
spk_unlock(flags);
|
||||
spin_unlock_irqrestore(&speakup_info.spinlock, flags);
|
||||
}
|
||||
return (ssize_t) nbytes;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user