]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
parisc-eisa_eeprom: BKL pushdown
authorArnd Bergmann <arnd@arndb.de>
Tue, 20 May 2008 17:16:30 +0000 (19:16 +0200)
committerJonathan Corbet <corbet@lwn.net>
Wed, 2 Jul 2008 21:06:24 +0000 (15:06 -0600)
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/parisc/eisa_eeprom.c

index 86e9c84a965e3e4f815266734c1c030078a3d0c6..5ac207932fd7b755fa56418ec8745be6c9afd093 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/kernel.h>
 #include <linux/miscdevice.h>
 #include <linux/slab.h>
+#include <linux/smp_lock.h>
 #include <linux/fs.h>
 #include <asm/io.h>
 #include <asm/uaccess.h>
@@ -83,6 +84,8 @@ static int eisa_eeprom_ioctl(struct inode *inode, struct file *file,
 
 static int eisa_eeprom_open(struct inode *inode, struct file *file)
 {
+       cycle_kernel_lock();
+
        if (file->f_mode & 2)
                return -EINVAL;