diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-21 00:15:16 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-26 15:25:08 -0400 |
commit | ce7b0f46bbf4bff8daab2dd3d878b9e72a623d09 (patch) | |
tree | 7a860cf52fbf1ff768197702af60a8329d296dff /drivers/cdrom | |
parent | 96192ff1a9d0c6ef365d21667080259d83ea2f5b (diff) |
[PATCH] devfs: Remove the gendisk devfs_name field as it's no longer needed
And remove the now unneeded number field.
Also fixes all drivers that set these fields.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/cdrom')
-rw-r--r-- | drivers/cdrom/aztcd.c | 1 | ||||
-rw-r--r-- | drivers/cdrom/gscd.c | 1 | ||||
-rw-r--r-- | drivers/cdrom/optcd.c | 1 | ||||
-rw-r--r-- | drivers/cdrom/sbpcd.c | 1 | ||||
-rw-r--r-- | drivers/cdrom/sjcd.c | 1 | ||||
-rw-r--r-- | drivers/cdrom/sonycd535.c | 1 | ||||
-rw-r--r-- | drivers/cdrom/viocd.c | 2 |
7 files changed, 0 insertions, 8 deletions
diff --git a/drivers/cdrom/aztcd.c b/drivers/cdrom/aztcd.c index ec004897b634..ec469497c10f 100644 --- a/drivers/cdrom/aztcd.c +++ b/drivers/cdrom/aztcd.c | |||
@@ -1918,7 +1918,6 @@ static int __init aztcd_init(void) | |||
1918 | azt_disk->first_minor = 0; | 1918 | azt_disk->first_minor = 0; |
1919 | azt_disk->fops = &azt_fops; | 1919 | azt_disk->fops = &azt_fops; |
1920 | sprintf(azt_disk->disk_name, "aztcd"); | 1920 | sprintf(azt_disk->disk_name, "aztcd"); |
1921 | sprintf(azt_disk->devfs_name, "aztcd"); | ||
1922 | azt_disk->queue = azt_queue; | 1921 | azt_disk->queue = azt_queue; |
1923 | add_disk(azt_disk); | 1922 | add_disk(azt_disk); |
1924 | azt_invalidate_buffers(); | 1923 | azt_invalidate_buffers(); |
diff --git a/drivers/cdrom/gscd.c b/drivers/cdrom/gscd.c index ad5464ab99bc..b6ee50a2916d 100644 --- a/drivers/cdrom/gscd.c +++ b/drivers/cdrom/gscd.c | |||
@@ -955,7 +955,6 @@ static int __init gscd_init(void) | |||
955 | gscd_disk->first_minor = 0; | 955 | gscd_disk->first_minor = 0; |
956 | gscd_disk->fops = &gscd_fops; | 956 | gscd_disk->fops = &gscd_fops; |
957 | sprintf(gscd_disk->disk_name, "gscd"); | 957 | sprintf(gscd_disk->disk_name, "gscd"); |
958 | sprintf(gscd_disk->devfs_name, "gscd"); | ||
959 | 958 | ||
960 | if (register_blkdev(MAJOR_NR, "gscd")) { | 959 | if (register_blkdev(MAJOR_NR, "gscd")) { |
961 | ret = -EIO; | 960 | ret = -EIO; |
diff --git a/drivers/cdrom/optcd.c b/drivers/cdrom/optcd.c index 0b0eab4f40fa..25032d7edc55 100644 --- a/drivers/cdrom/optcd.c +++ b/drivers/cdrom/optcd.c | |||
@@ -2033,7 +2033,6 @@ static int __init optcd_init(void) | |||
2033 | optcd_disk->first_minor = 0; | 2033 | optcd_disk->first_minor = 0; |
2034 | optcd_disk->fops = &opt_fops; | 2034 | optcd_disk->fops = &opt_fops; |
2035 | sprintf(optcd_disk->disk_name, "optcd"); | 2035 | sprintf(optcd_disk->disk_name, "optcd"); |
2036 | sprintf(optcd_disk->devfs_name, "optcd"); | ||
2037 | 2036 | ||
2038 | if (!request_region(optcd_port, 4, "optcd")) { | 2037 | if (!request_region(optcd_port, 4, "optcd")) { |
2039 | printk(KERN_ERR "optcd: conflict, I/O port 0x%x already used\n", | 2038 | printk(KERN_ERR "optcd: conflict, I/O port 0x%x already used\n", |
diff --git a/drivers/cdrom/sbpcd.c b/drivers/cdrom/sbpcd.c index a75b363b19c5..2fc966c65a0e 100644 --- a/drivers/cdrom/sbpcd.c +++ b/drivers/cdrom/sbpcd.c | |||
@@ -5868,7 +5868,6 @@ int __init sbpcd_init(void) | |||
5868 | disk->fops = &sbpcd_bdops; | 5868 | disk->fops = &sbpcd_bdops; |
5869 | strcpy(disk->disk_name, sbpcd_infop->name); | 5869 | strcpy(disk->disk_name, sbpcd_infop->name); |
5870 | disk->flags = GENHD_FL_CD; | 5870 | disk->flags = GENHD_FL_CD; |
5871 | sprintf(disk->devfs_name, "sbp/c0t%d", p->drv_id); | ||
5872 | p->disk = disk; | 5871 | p->disk = disk; |
5873 | if (register_cdrom(sbpcd_infop)) | 5872 | if (register_cdrom(sbpcd_infop)) |
5874 | { | 5873 | { |
diff --git a/drivers/cdrom/sjcd.c b/drivers/cdrom/sjcd.c index 74b1cadbf161..bf5aef4e555b 100644 --- a/drivers/cdrom/sjcd.c +++ b/drivers/cdrom/sjcd.c | |||
@@ -1695,7 +1695,6 @@ static int __init sjcd_init(void) | |||
1695 | sjcd_disk->first_minor = 0, | 1695 | sjcd_disk->first_minor = 0, |
1696 | sjcd_disk->fops = &sjcd_fops, | 1696 | sjcd_disk->fops = &sjcd_fops, |
1697 | sprintf(sjcd_disk->disk_name, "sjcd"); | 1697 | sprintf(sjcd_disk->disk_name, "sjcd"); |
1698 | sprintf(sjcd_disk->devfs_name, "sjcd"); | ||
1699 | 1698 | ||
1700 | if (!request_region(sjcd_base, 4,"sjcd")) { | 1699 | if (!request_region(sjcd_base, 4,"sjcd")) { |
1701 | printk | 1700 | printk |
diff --git a/drivers/cdrom/sonycd535.c b/drivers/cdrom/sonycd535.c index e65659926432..8f7cc452af8d 100644 --- a/drivers/cdrom/sonycd535.c +++ b/drivers/cdrom/sonycd535.c | |||
@@ -1589,7 +1589,6 @@ static int __init sony535_init(void) | |||
1589 | cdu_disk->first_minor = 0; | 1589 | cdu_disk->first_minor = 0; |
1590 | cdu_disk->fops = &cdu_fops; | 1590 | cdu_disk->fops = &cdu_fops; |
1591 | sprintf(cdu_disk->disk_name, "cdu"); | 1591 | sprintf(cdu_disk->disk_name, "cdu"); |
1592 | sprintf(cdu_disk->devfs_name, "cdu535"); | ||
1593 | 1592 | ||
1594 | if (!request_region(sony535_cd_base_io, 4, CDU535_HANDLE)) { | 1593 | if (!request_region(sony535_cd_base_io, 4, CDU535_HANDLE)) { |
1595 | printk(KERN_WARNING"sonycd535: Unable to request region 0x%x\n", | 1594 | printk(KERN_WARNING"sonycd535: Unable to request region 0x%x\n", |
diff --git a/drivers/cdrom/viocd.c b/drivers/cdrom/viocd.c index af6b3bfd169b..f65597081171 100644 --- a/drivers/cdrom/viocd.c +++ b/drivers/cdrom/viocd.c | |||
@@ -688,8 +688,6 @@ static int viocd_probe(struct vio_dev *vdev, const struct vio_device_id *id) | |||
688 | gendisk->first_minor = deviceno; | 688 | gendisk->first_minor = deviceno; |
689 | strncpy(gendisk->disk_name, c->name, | 689 | strncpy(gendisk->disk_name, c->name, |
690 | sizeof(gendisk->disk_name)); | 690 | sizeof(gendisk->disk_name)); |
691 | snprintf(gendisk->devfs_name, sizeof(gendisk->devfs_name), | ||
692 | VIOCD_DEVICE_DEVFS "%d", deviceno); | ||
693 | blk_queue_max_hw_segments(q, 1); | 691 | blk_queue_max_hw_segments(q, 1); |
694 | blk_queue_max_phys_segments(q, 1); | 692 | blk_queue_max_phys_segments(q, 1); |
695 | blk_queue_max_sectors(q, 4096 / 512); | 693 | blk_queue_max_sectors(q, 4096 / 512); |