]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
staging: speakup: devsynth: remove custom locking macros
authorWilliam Hubbs <w.d.hubbs@gmail.com>
Mon, 13 May 2013 05:02:54 +0000 (00:02 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 23:11:07 +0000 (16:11 -0700)
Signed-off-by: William Hubbs <w.d.hubbs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/devsynth.c

index 940769ef883fcb7d6cad69931bc66fb5490328f9..7d327486666c71c8e83abf7038331944b393acbc 100644 (file)
@@ -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;
 }