From: William Hubbs Date: Mon, 13 May 2013 05:02:54 +0000 (-0500) Subject: staging: speakup: devsynth: remove custom locking macros X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2da11ba637216890249c5accdabae20d04883d32;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: speakup: devsynth: remove custom locking macros Signed-off-by: William Hubbs Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/speakup/devsynth.c b/drivers/staging/speakup/devsynth.c index 940769ef883f..7d327486666c 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; }