aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/osst.c
diff options
context:
space:
mode:
authorGreg KH <gregkh@suse.de>2006-01-18 19:17:46 -0500
committer <jejb@mulgrave.il.steeleye.com>2006-02-27 23:55:04 -0500
commit5e3c34c1e988a0dfe177c38cf324e8e321c55ef5 (patch)
tree812e95ccda5860a16fe3f53343499d2c607cbf23 /drivers/scsi/osst.c
parentc67a848c3587296fe9794c95d1be7109c4c85461 (diff)
[SCSI] Remove devfs support from the SCSI subsystem
As devfs has been disabled from the kernel tree for a number of months now (5 to be exact), here's a patch against 2.6.16-rc1-git1 that removes support for it from the SCSI subsystem. The patch also removes the scsi_disk devfs_name field as it's no longer needed. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/osst.c')
-rw-r--r--drivers/scsi/osst.c24
1 files changed, 2 insertions, 22 deletions
diff --git a/drivers/scsi/osst.c b/drivers/scsi/osst.c
index d9946bd95492..b9f6084fdd9e 100644
--- a/drivers/scsi/osst.c
+++ b/drivers/scsi/osst.c
@@ -48,7 +48,6 @@ static const char * osst_version = "0.99.3";
48#include <linux/vmalloc.h> 48#include <linux/vmalloc.h>
49#include <linux/blkdev.h> 49#include <linux/blkdev.h>
50#include <linux/moduleparam.h> 50#include <linux/moduleparam.h>
51#include <linux/devfs_fs_kernel.h>
52#include <linux/delay.h> 51#include <linux/delay.h>
53#include <asm/uaccess.h> 52#include <asm/uaccess.h>
54#include <asm/dma.h> 53#include <asm/dma.h>
@@ -107,8 +106,6 @@ static struct osst_dev_parm {
107}; 106};
108#endif 107#endif
109 108
110static char *osst_formats[ST_NBR_MODES] ={"", "l", "m", "a"};
111
112/* Some default definitions have been moved to osst_options.h */ 109/* Some default definitions have been moved to osst_options.h */
113#define OSST_BUFFER_SIZE (OSST_BUFFER_BLOCKS * ST_KILOBYTE) 110#define OSST_BUFFER_SIZE (OSST_BUFFER_BLOCKS * ST_KILOBYTE)
114#define OSST_WRITE_THRESHOLD (OSST_WRITE_THRESHOLD_BLOCKS * ST_KILOBYTE) 111#define OSST_WRITE_THRESHOLD (OSST_WRITE_THRESHOLD_BLOCKS * ST_KILOBYTE)
@@ -5667,7 +5664,7 @@ static int osst_probe(struct device *dev)
5667 struct st_partstat * STps; 5664 struct st_partstat * STps;
5668 struct osst_buffer * buffer; 5665 struct osst_buffer * buffer;
5669 struct gendisk * drive; 5666 struct gendisk * drive;
5670 int i, mode, dev_num; 5667 int i, dev_num;
5671 5668
5672 if (SDp->type != TYPE_TAPE || !osst_supports(SDp)) 5669 if (SDp->type != TYPE_TAPE || !osst_supports(SDp))
5673 return -ENODEV; 5670 return -ENODEV;
@@ -5803,18 +5800,6 @@ static int osst_probe(struct device *dev)
5803 snprintf(name, 8, "%s%s", "n", tape_name(tpnt)); 5800 snprintf(name, 8, "%s%s", "n", tape_name(tpnt));
5804 osst_sysfs_add(MKDEV(OSST_MAJOR, dev_num + 128), dev, tpnt, name); 5801 osst_sysfs_add(MKDEV(OSST_MAJOR, dev_num + 128), dev, tpnt, name);
5805 } 5802 }
5806 for (mode = 0; mode < ST_NBR_MODES; ++mode) {
5807 /* Rewind entry */
5808 devfs_mk_cdev(MKDEV(OSST_MAJOR, dev_num + (mode << 5)),
5809 S_IFCHR | S_IRUGO | S_IWUGO,
5810 "%s/ot%s", SDp->devfs_name, osst_formats[mode]);
5811
5812 /* No-rewind entry */
5813 devfs_mk_cdev(MKDEV(OSST_MAJOR, dev_num + (mode << 5) + 128),
5814 S_IFCHR | S_IRUGO | S_IWUGO,
5815 "%s/ot%sn", SDp->devfs_name, osst_formats[mode]);
5816 }
5817 drive->number = devfs_register_tape(SDp->devfs_name);
5818 5803
5819 sdev_printk(KERN_INFO, SDp, 5804 sdev_printk(KERN_INFO, SDp,
5820 "osst :I: Attached OnStream %.5s tape as %s\n", 5805 "osst :I: Attached OnStream %.5s tape as %s\n",
@@ -5831,7 +5816,7 @@ static int osst_remove(struct device *dev)
5831{ 5816{
5832 struct scsi_device * SDp = to_scsi_device(dev); 5817 struct scsi_device * SDp = to_scsi_device(dev);
5833 struct osst_tape * tpnt; 5818 struct osst_tape * tpnt;
5834 int i, mode; 5819 int i;
5835 5820
5836 if ((SDp->type != TYPE_TAPE) || (osst_nr_dev <= 0)) 5821 if ((SDp->type != TYPE_TAPE) || (osst_nr_dev <= 0))
5837 return 0; 5822 return 0;
@@ -5842,11 +5827,6 @@ static int osst_remove(struct device *dev)
5842 osst_sysfs_destroy(MKDEV(OSST_MAJOR, i)); 5827 osst_sysfs_destroy(MKDEV(OSST_MAJOR, i));
5843 osst_sysfs_destroy(MKDEV(OSST_MAJOR, i+128)); 5828 osst_sysfs_destroy(MKDEV(OSST_MAJOR, i+128));
5844 tpnt->device = NULL; 5829 tpnt->device = NULL;
5845 for (mode = 0; mode < ST_NBR_MODES; ++mode) {
5846 devfs_remove("%s/ot%s", SDp->devfs_name, osst_formats[mode]);
5847 devfs_remove("%s/ot%sn", SDp->devfs_name, osst_formats[mode]);
5848 }
5849 devfs_unregister_tape(tpnt->drive->number);
5850 put_disk(tpnt->drive); 5830 put_disk(tpnt->drive);
5851 os_scsi_tapes[i] = NULL; 5831 os_scsi_tapes[i] = NULL;
5852 osst_nr_dev--; 5832 osst_nr_dev--;