From: Arnd Bergmann Date: Tue, 20 May 2008 17:16:40 +0000 (+0200) Subject: sbus-rtc: BKL pushdown X-Git-Tag: v2.6.27-rc1~1103^2~31 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5ab0854dd77a520abe7c3b9c7770972fd3e61e90;p=linux-2.6-omap-h63xx.git sbus-rtc: BKL pushdown Signed-off-by: Arnd Bergmann --- diff --git a/drivers/sbus/char/rtc.c b/drivers/sbus/char/rtc.c index 18d18f1a114..b0429917154 100644 --- a/drivers/sbus/char/rtc.c +++ b/drivers/sbus/char/rtc.c @@ -12,6 +12,7 @@ */ #include +#include #include #include #include @@ -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; }