From: Arnd Bergmann Date: Tue, 20 May 2008 17:16:22 +0000 (+0200) Subject: mvme16x-rtc: BKL pushdown X-Git-Tag: v2.6.27-rc1~1103^2~43 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e3e8e59dcd63621e3ade03083c17b6363a8e2dc8;p=linux-2.6-omap-h63xx.git mvme16x-rtc: BKL pushdown Signed-off-by: Arnd Bergmann --- diff --git a/arch/m68k/mvme16x/rtc.c b/arch/m68k/mvme16x/rtc.c index e341387787a..432a9f13b2e 100644 --- a/arch/m68k/mvme16x/rtc.c +++ b/arch/m68k/mvme16x/rtc.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -127,11 +128,14 @@ static int rtc_ioctl(struct inode *inode, struct file *file, unsigned int cmd, static int rtc_open(struct inode *inode, struct file *file) { + lock_kernel(); if( !atomic_dec_and_test(&rtc_ready) ) { atomic_inc( &rtc_ready ); + unlock_kernel(); return -EBUSY; } + unlock_kernel(); return 0; }