diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2013-05-13 05:02:54 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-16 23:11:07 (GMT) |
commit | 2da11ba637216890249c5accdabae20d04883d32 (patch) | |
tree | 60321099b9846ae81ccfda0556ace429db48ab0b /drivers/staging/speakup/devsynth.c | |
parent | c2d7f7430fc7a627fd5ef0a7069076e342bd2d50 (diff) | |
download | linux-fsl-qoriq-2da11ba637216890249c5accdabae20d04883d32.tar.xz |
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>
Diffstat (limited to 'drivers/staging/speakup/devsynth.c')
-rw-r--r-- | drivers/staging/speakup/devsynth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/speakup/devsynth.c b/drivers/staging/speakup/devsynth.c index 940769e..7d32748 100644 --- a/drivers/staging/speakup/devsynth.c +++ b/drivers/staging/speakup/devsynth.c @@ -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; } |