summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2008-05-20 19:16:40 +0200
committerJonathan Corbet <corbet@lwn.net>2008-07-02 15:06:24 -0600
commit5ab0854dd77a520abe7c3b9c7770972fd3e61e90 (patch)
tree40baf08bf8edcd1b2d72d13da3adffe3aa37eafc
parent41012735352e72b8a3f95521817dcad1b2986636 (diff)
downloadtalos-obmc-linux-5ab0854dd77a520abe7c3b9c7770972fd3e61e90.tar.gz
talos-obmc-linux-5ab0854dd77a520abe7c3b9c7770972fd3e61e90.zip
sbus-rtc: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r--drivers/sbus/char/rtc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/sbus/char/rtc.c b/drivers/sbus/char/rtc.c
index 18d18f1a114e..b0429917154d 100644
--- a/drivers/sbus/char/rtc.c
+++ b/drivers/sbus/char/rtc.c
@@ -12,6 +12,7 @@
*/
#include <linux/module.h>
+#include <linux/smp_lock.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/miscdevice.h>
@@ -213,6 +214,7 @@ static int rtc_open(struct inode *inode, struct file *file)
{
int ret;
+ lock_kernel();
spin_lock_irq(&mostek_lock);
if (rtc_busy) {
ret = -EBUSY;
@@ -221,6 +223,7 @@ static int rtc_open(struct inode *inode, struct file *file)
ret = 0;
}
spin_unlock_irq(&mostek_lock);
+ unlock_kernel();
return ret;
}
OpenPOWER on IntegriCloud