]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/scsi/ch.c
[PATCH] remove many unneeded #includes of sched.h
[net-next-2.6.git] / drivers / scsi / ch.c
index c3f27285db1bd91bf5d7d0955c35797e7dc16ff2..2a2cc6cf1182a9cdaa2ebf0df1c2b9e15b4b37e3 100644 (file)
@@ -7,12 +7,10 @@
 
 #define VERSION "0.25"
 
-#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/fs.h>
 #include <linux/kernel.h>
-#include <linux/sched.h>
 #include <linux/mm.h>
 #include <linux/major.h>
 #include <linux/string.h>
@@ -39,6 +37,7 @@
 MODULE_DESCRIPTION("device driver for scsi media changer devices");
 MODULE_AUTHOR("Gerd Knorr <kraxel@bytesex.org>");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS_CHARDEV_MAJOR(SCSI_CHANGER_MAJOR);
 
 static int init = 1;
 module_param(init, int, 0444);
@@ -129,7 +128,7 @@ static struct scsi_driver ch_template =
        },
 };
 
-static struct file_operations changer_fops =
+static const struct file_operations changer_fops =
 {
        .owner        = THIS_MODULE,
        .open         = ch_open,