[POWERPC] spi: Use fsl_spi instead of mpc83xx_spi
[safe/jmp/linux-2.6] / arch / um / drivers / mmapper_kern.c
index 022f67b..867666a 100644 (file)
 #include <linux/init.h> 
 #include <linux/module.h>
 #include <linux/mm.h> 
+#include <linux/fs.h>
 #include <linux/miscdevice.h>
 #include <asm/uaccess.h>
 #include "mem_user.h"
-#include "user_util.h"
  
 /* These are set in mmapper_init, which is called at boot time */
 static unsigned long mmapper_size;
@@ -85,7 +85,7 @@ mmapper_release(struct inode *inode, struct file *file)
        return 0;
 }
 
-static struct file_operations mmapper_fops = {
+static const struct file_operations mmapper_fops = {
        .owner          = THIS_MODULE,
        .read           = mmapper_read,
        .write          = mmapper_write,
@@ -95,6 +95,7 @@ static struct file_operations mmapper_fops = {
        .release        = mmapper_release,
 };
 
+/* No locking needed - only used (and modified) by below initcall and exitcall. */
 static struct miscdevice mmapper_dev = {
        .minor          = MISC_DYNAMIC_MINOR,
        .name           = "mmapper",