]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/parisc/eisa_eeprom.c
fat: document additional vfat mount options
[linux-2.6-omap-h63xx.git] / drivers / parisc / eisa_eeprom.c
index e13aafa70bf528d0401770c88b3bce7815f4e35f..685d94e69d44e2b0791d0546736bef20c5d22806 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,7 +84,9 @@ static int eisa_eeprom_ioctl(struct inode *inode, struct file *file,
 
 static int eisa_eeprom_open(struct inode *inode, struct file *file)
 {
-       if (file->f_mode & 2)
+       cycle_kernel_lock();
+
+       if (file->f_mode & FMODE_WRITE)
                return -EINVAL;
    
        return 0;
@@ -97,7 +100,7 @@ static int eisa_eeprom_release(struct inode *inode, struct file *file)
 /*
  *     The various file operations we support.
  */
-static struct file_operations eisa_eeprom_fops = {
+static const struct file_operations eisa_eeprom_fops = {
        .owner =        THIS_MODULE,
        .llseek =       eisa_eeprom_llseek,
        .read =         eisa_eeprom_read,