diff options
-rw-r--r-- | arch/um/drivers/ubd_kern.c | 8 | ||||
-rw-r--r-- | drivers/block/DAC960.c | 1 | ||||
-rw-r--r-- | drivers/block/acsi.c | 5 | ||||
-rw-r--r-- | drivers/block/cciss.c | 1 | ||||
-rw-r--r-- | drivers/block/cpqarray.c | 2 | ||||
-rw-r--r-- | drivers/block/loop.c | 1 | ||||
-rw-r--r-- | drivers/block/nbd.c | 1 | ||||
-rw-r--r-- | drivers/block/ps2esdi.c | 1 | ||||
-rw-r--r-- | drivers/block/rd.c | 1 | ||||
-rw-r--r-- | drivers/block/swim3.c | 1 | ||||
-rw-r--r-- | drivers/block/sx8.c | 1 | ||||
-rw-r--r-- | drivers/block/ub.c | 2 | ||||
-rw-r--r-- | drivers/block/umem.c | 1 | ||||
-rw-r--r-- | drivers/block/viodasd.c | 2 | ||||
-rw-r--r-- | drivers/block/xd.c | 1 | ||||
-rw-r--r-- | drivers/block/z2ram.c | 1 | ||||
-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 | ||||
-rw-r--r-- | drivers/md/md.c | 7 | ||||
-rw-r--r-- | drivers/message/i2o/i2o_block.c | 1 | ||||
-rw-r--r-- | drivers/mmc/mmc_block.c | 1 | ||||
-rw-r--r-- | drivers/s390/block/dasd_genhd.c | 2 | ||||
-rw-r--r-- | drivers/s390/block/xpram.c | 1 | ||||
-rw-r--r-- | include/linux/genhd.h | 2 |
29 files changed, 5 insertions, 47 deletions
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index 5856a02fff58..c3e205b6a4c9 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c | |||
@@ -637,14 +637,10 @@ static int ubd_new_disk(int major, u64 size, int unit, | |||
637 | disk->first_minor = unit << UBD_SHIFT; | 637 | disk->first_minor = unit << UBD_SHIFT; |
638 | disk->fops = &ubd_blops; | 638 | disk->fops = &ubd_blops; |
639 | set_capacity(disk, size / 512); | 639 | set_capacity(disk, size / 512); |
640 | if(major == MAJOR_NR){ | 640 | if(major == MAJOR_NR) |
641 | sprintf(disk->disk_name, "ubd%c", 'a' + unit); | 641 | sprintf(disk->disk_name, "ubd%c", 'a' + unit); |
642 | sprintf(disk->devfs_name, "ubd/disc%d", unit); | 642 | else |
643 | } | ||
644 | else { | ||
645 | sprintf(disk->disk_name, "ubd_fake%d", unit); | 643 | sprintf(disk->disk_name, "ubd_fake%d", unit); |
646 | sprintf(disk->devfs_name, "ubd_fake/disc%d", unit); | ||
647 | } | ||
648 | 644 | ||
649 | /* sysfs register (not for ide fake devices) */ | 645 | /* sysfs register (not for ide fake devices) */ |
650 | if (major == MAJOR_NR) { | 646 | if (major == MAJOR_NR) { |
diff --git a/drivers/block/DAC960.c b/drivers/block/DAC960.c index dd8a1501142f..50ca1aa4ee3b 100644 --- a/drivers/block/DAC960.c +++ b/drivers/block/DAC960.c | |||
@@ -2530,7 +2530,6 @@ static boolean DAC960_RegisterBlockDevice(DAC960_Controller_T *Controller) | |||
2530 | blk_queue_max_sectors(RequestQueue, Controller->MaxBlocksPerCommand); | 2530 | blk_queue_max_sectors(RequestQueue, Controller->MaxBlocksPerCommand); |
2531 | disk->queue = RequestQueue; | 2531 | disk->queue = RequestQueue; |
2532 | sprintf(disk->disk_name, "rd/c%dd%d", Controller->ControllerNumber, n); | 2532 | sprintf(disk->disk_name, "rd/c%dd%d", Controller->ControllerNumber, n); |
2533 | sprintf(disk->devfs_name, "rd/host%d/target%d", Controller->ControllerNumber, n); | ||
2534 | disk->major = MajorNumber; | 2533 | disk->major = MajorNumber; |
2535 | disk->first_minor = n << DAC960_MaxPartitionsBits; | 2534 | disk->first_minor = n << DAC960_MaxPartitionsBits; |
2536 | disk->fops = &DAC960_BlockDeviceOperations; | 2535 | disk->fops = &DAC960_BlockDeviceOperations; |
diff --git a/drivers/block/acsi.c b/drivers/block/acsi.c index 196c0ec9cd54..a317e4303952 100644 --- a/drivers/block/acsi.c +++ b/drivers/block/acsi.c | |||
@@ -1732,13 +1732,10 @@ int acsi_init( void ) | |||
1732 | struct gendisk *disk = acsi_gendisk[i]; | 1732 | struct gendisk *disk = acsi_gendisk[i]; |
1733 | sprintf(disk->disk_name, "ad%c", 'a'+i); | 1733 | sprintf(disk->disk_name, "ad%c", 'a'+i); |
1734 | aip = &acsi_info[NDevices]; | 1734 | aip = &acsi_info[NDevices]; |
1735 | sprintf(disk->devfs_name, "ad/target%d/lun%d", aip->target, aip->lun); | ||
1736 | disk->major = ACSI_MAJOR; | 1735 | disk->major = ACSI_MAJOR; |
1737 | disk->first_minor = i << 4; | 1736 | disk->first_minor = i << 4; |
1738 | if (acsi_info[i].type != HARDDISK) { | 1737 | if (acsi_info[i].type != HARDDISK) |
1739 | disk->minors = 1; | 1738 | disk->minors = 1; |
1740 | strcat(disk->devfs_name, "/disc"); | ||
1741 | } | ||
1742 | disk->fops = &acsi_fops; | 1739 | disk->fops = &acsi_fops; |
1743 | disk->private_data = &acsi_info[i]; | 1740 | disk->private_data = &acsi_info[i]; |
1744 | set_capacity(disk, acsi_info[i].size); | 1741 | set_capacity(disk, acsi_info[i].size); |
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 39b0f53186e8..05fb08312c01 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c | |||
@@ -3248,7 +3248,6 @@ static int __devinit cciss_init_one(struct pci_dev *pdev, | |||
3248 | 3248 | ||
3249 | q->queuedata = hba[i]; | 3249 | q->queuedata = hba[i]; |
3250 | sprintf(disk->disk_name, "cciss/c%dd%d", i, j); | 3250 | sprintf(disk->disk_name, "cciss/c%dd%d", i, j); |
3251 | sprintf(disk->devfs_name, "cciss/host%d/target%d", i, j); | ||
3252 | disk->major = hba[i]->major; | 3251 | disk->major = hba[i]->major; |
3253 | disk->first_minor = j << NWD_SHIFT; | 3252 | disk->first_minor = j << NWD_SHIFT; |
3254 | disk->fops = &cciss_fops; | 3253 | disk->fops = &cciss_fops; |
diff --git a/drivers/block/cpqarray.c b/drivers/block/cpqarray.c index f96e6c03593e..bfd245df0a8c 100644 --- a/drivers/block/cpqarray.c +++ b/drivers/block/cpqarray.c | |||
@@ -1805,8 +1805,6 @@ static void getgeometry(int ctlr) | |||
1805 | 1805 | ||
1806 | } | 1806 | } |
1807 | 1807 | ||
1808 | sprintf(disk->devfs_name, "ida/c%dd%d", ctlr, log_unit); | ||
1809 | |||
1810 | info_p->phys_drives = | 1808 | info_p->phys_drives = |
1811 | sense_config_buf->ctlr_phys_drv; | 1809 | sense_config_buf->ctlr_phys_drv; |
1812 | info_p->drv_assign_map | 1810 | info_p->drv_assign_map |
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index dbf905ce0248..9983e7200210 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c | |||
@@ -1293,7 +1293,6 @@ static int __init loop_init(void) | |||
1293 | disk->first_minor = i; | 1293 | disk->first_minor = i; |
1294 | disk->fops = &lo_fops; | 1294 | disk->fops = &lo_fops; |
1295 | sprintf(disk->disk_name, "loop%d", i); | 1295 | sprintf(disk->disk_name, "loop%d", i); |
1296 | sprintf(disk->devfs_name, "loop/%d", i); | ||
1297 | disk->private_data = lo; | 1296 | disk->private_data = lo; |
1298 | disk->queue = lo->lo_queue; | 1297 | disk->queue = lo->lo_queue; |
1299 | } | 1298 | } |
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index b164ee0ac79f..39662f0c9cce 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c | |||
@@ -657,7 +657,6 @@ static int __init nbd_init(void) | |||
657 | disk->private_data = &nbd_dev[i]; | 657 | disk->private_data = &nbd_dev[i]; |
658 | disk->flags |= GENHD_FL_SUPPRESS_PARTITION_INFO; | 658 | disk->flags |= GENHD_FL_SUPPRESS_PARTITION_INFO; |
659 | sprintf(disk->disk_name, "nbd%d", i); | 659 | sprintf(disk->disk_name, "nbd%d", i); |
660 | sprintf(disk->devfs_name, "nbd/%d", i); | ||
661 | set_capacity(disk, 0x7ffffc00ULL << 1); /* 2 TB */ | 660 | set_capacity(disk, 0x7ffffc00ULL << 1); /* 2 TB */ |
662 | add_disk(disk); | 661 | add_disk(disk); |
663 | } | 662 | } |
diff --git a/drivers/block/ps2esdi.c b/drivers/block/ps2esdi.c index bea75f2cb211..a729013a3973 100644 --- a/drivers/block/ps2esdi.c +++ b/drivers/block/ps2esdi.c | |||
@@ -421,7 +421,6 @@ static int __init ps2esdi_geninit(void) | |||
421 | disk->major = PS2ESDI_MAJOR; | 421 | disk->major = PS2ESDI_MAJOR; |
422 | disk->first_minor = i<<6; | 422 | disk->first_minor = i<<6; |
423 | sprintf(disk->disk_name, "ed%c", 'a'+i); | 423 | sprintf(disk->disk_name, "ed%c", 'a'+i); |
424 | sprintf(disk->devfs_name, "ed/target%d", i); | ||
425 | disk->fops = &ps2esdi_fops; | 424 | disk->fops = &ps2esdi_fops; |
426 | ps2esdi_gendisk[i] = disk; | 425 | ps2esdi_gendisk[i] = disk; |
427 | } | 426 | } |
diff --git a/drivers/block/rd.c b/drivers/block/rd.c index 536be2de989e..e64f26ec6140 100644 --- a/drivers/block/rd.c +++ b/drivers/block/rd.c | |||
@@ -457,7 +457,6 @@ static int __init rd_init(void) | |||
457 | disk->queue = rd_queue[i]; | 457 | disk->queue = rd_queue[i]; |
458 | disk->flags |= GENHD_FL_SUPPRESS_PARTITION_INFO; | 458 | disk->flags |= GENHD_FL_SUPPRESS_PARTITION_INFO; |
459 | sprintf(disk->disk_name, "ram%d", i); | 459 | sprintf(disk->disk_name, "ram%d", i); |
460 | sprintf(disk->devfs_name, "rd/%d", i); | ||
461 | set_capacity(disk, rd_size * 2); | 460 | set_capacity(disk, rd_size * 2); |
462 | add_disk(rd_disks[i]); | 461 | add_disk(rd_disks[i]); |
463 | } | 462 | } |
diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c index ef557b1043d8..628877945f9b 100644 --- a/drivers/block/swim3.c +++ b/drivers/block/swim3.c | |||
@@ -1061,7 +1061,6 @@ int swim3_init(void) | |||
1061 | disk->queue = swim3_queue; | 1061 | disk->queue = swim3_queue; |
1062 | disk->flags |= GENHD_FL_REMOVABLE; | 1062 | disk->flags |= GENHD_FL_REMOVABLE; |
1063 | sprintf(disk->disk_name, "fd%d", i); | 1063 | sprintf(disk->disk_name, "fd%d", i); |
1064 | sprintf(disk->devfs_name, "floppy/%d", i); | ||
1065 | set_capacity(disk, 2880); | 1064 | set_capacity(disk, 2880); |
1066 | add_disk(disk); | 1065 | add_disk(disk); |
1067 | } | 1066 | } |
diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c index 3a4814551568..fbddeb4b04a2 100644 --- a/drivers/block/sx8.c +++ b/drivers/block/sx8.c | |||
@@ -1509,7 +1509,6 @@ static int carm_init_disks(struct carm_host *host) | |||
1509 | port->disk = disk; | 1509 | port->disk = disk; |
1510 | sprintf(disk->disk_name, DRV_NAME "/%u", | 1510 | sprintf(disk->disk_name, DRV_NAME "/%u", |
1511 | (unsigned int) (host->id * CARM_MAX_PORTS) + i); | 1511 | (unsigned int) (host->id * CARM_MAX_PORTS) + i); |
1512 | sprintf(disk->devfs_name, DRV_NAME "/%u_%u", host->id, i); | ||
1513 | disk->major = host->major; | 1512 | disk->major = host->major; |
1514 | disk->first_minor = i * CARM_MINORS_PER_MAJOR; | 1513 | disk->first_minor = i * CARM_MINORS_PER_MAJOR; |
1515 | disk->fops = &carm_bd_ops; | 1514 | disk->fops = &carm_bd_ops; |
diff --git a/drivers/block/ub.c b/drivers/block/ub.c index 87ec6458bd1d..d62b49fbf10c 100644 --- a/drivers/block/ub.c +++ b/drivers/block/ub.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <scsi/scsi.h> | 28 | #include <scsi/scsi.h> |
29 | 29 | ||
30 | #define DRV_NAME "ub" | 30 | #define DRV_NAME "ub" |
31 | #define DEVFS_NAME DRV_NAME | ||
32 | 31 | ||
33 | #define UB_MAJOR 180 | 32 | #define UB_MAJOR 180 |
34 | 33 | ||
@@ -2290,7 +2289,6 @@ static int ub_probe_lun(struct ub_dev *sc, int lnum) | |||
2290 | goto err_diskalloc; | 2289 | goto err_diskalloc; |
2291 | 2290 | ||
2292 | sprintf(disk->disk_name, DRV_NAME "%c", lun->id + 'a'); | 2291 | sprintf(disk->disk_name, DRV_NAME "%c", lun->id + 'a'); |
2293 | sprintf(disk->devfs_name, DEVFS_NAME "/%c", lun->id + 'a'); | ||
2294 | disk->major = UB_MAJOR; | 2292 | disk->major = UB_MAJOR; |
2295 | disk->first_minor = lun->id * UB_PARTS_PER_LUN; | 2293 | disk->first_minor = lun->id * UB_PARTS_PER_LUN; |
2296 | disk->fops = &ub_bd_fops; | 2294 | disk->fops = &ub_bd_fops; |
diff --git a/drivers/block/umem.c b/drivers/block/umem.c index f7d4c65a7b8c..585197b95af7 100644 --- a/drivers/block/umem.c +++ b/drivers/block/umem.c | |||
@@ -1192,7 +1192,6 @@ static int __init mm_init(void) | |||
1192 | for (i = 0; i < num_cards; i++) { | 1192 | for (i = 0; i < num_cards; i++) { |
1193 | struct gendisk *disk = mm_gendisk[i]; | 1193 | struct gendisk *disk = mm_gendisk[i]; |
1194 | sprintf(disk->disk_name, "umem%c", 'a'+i); | 1194 | sprintf(disk->disk_name, "umem%c", 'a'+i); |
1195 | sprintf(disk->devfs_name, "umem/card%d", i); | ||
1196 | spin_lock_init(&cards[i].lock); | 1195 | spin_lock_init(&cards[i].lock); |
1197 | disk->major = major_nr; | 1196 | disk->major = major_nr; |
1198 | disk->first_minor = i << MM_SHIFT; | 1197 | disk->first_minor = i << MM_SHIFT; |
diff --git a/drivers/block/viodasd.c b/drivers/block/viodasd.c index b0df4f5ab97a..5cc7e671b033 100644 --- a/drivers/block/viodasd.c +++ b/drivers/block/viodasd.c | |||
@@ -523,8 +523,6 @@ retry: | |||
523 | else | 523 | else |
524 | snprintf(g->disk_name, sizeof(g->disk_name), | 524 | snprintf(g->disk_name, sizeof(g->disk_name), |
525 | VIOD_GENHD_NAME "%c", 'a' + (dev_no % 26)); | 525 | VIOD_GENHD_NAME "%c", 'a' + (dev_no % 26)); |
526 | snprintf(g->devfs_name, sizeof(g->devfs_name), | ||
527 | "%s%d", VIOD_GENHD_DEVFS_NAME, dev_no); | ||
528 | g->fops = &viodasd_fops; | 526 | g->fops = &viodasd_fops; |
529 | g->queue = q; | 527 | g->queue = q; |
530 | g->private_data = d; | 528 | g->private_data = d; |
diff --git a/drivers/block/xd.c b/drivers/block/xd.c index cbce7c5e9445..e828e4cbd3e1 100644 --- a/drivers/block/xd.c +++ b/drivers/block/xd.c | |||
@@ -215,7 +215,6 @@ static int __init xd_init(void) | |||
215 | disk->major = XT_DISK_MAJOR; | 215 | disk->major = XT_DISK_MAJOR; |
216 | disk->first_minor = i<<6; | 216 | disk->first_minor = i<<6; |
217 | sprintf(disk->disk_name, "xd%c", i+'a'); | 217 | sprintf(disk->disk_name, "xd%c", i+'a'); |
218 | sprintf(disk->devfs_name, "xd/target%d", i); | ||
219 | disk->fops = &xd_fops; | 218 | disk->fops = &xd_fops; |
220 | disk->private_data = p; | 219 | disk->private_data = p; |
221 | disk->queue = xd_queue; | 220 | disk->queue = xd_queue; |
diff --git a/drivers/block/z2ram.c b/drivers/block/z2ram.c index bb5e8d665a2a..82ddbdd7bd4b 100644 --- a/drivers/block/z2ram.c +++ b/drivers/block/z2ram.c | |||
@@ -354,7 +354,6 @@ z2_init(void) | |||
354 | z2ram_gendisk->first_minor = 0; | 354 | z2ram_gendisk->first_minor = 0; |
355 | z2ram_gendisk->fops = &z2_fops; | 355 | z2ram_gendisk->fops = &z2_fops; |
356 | sprintf(z2ram_gendisk->disk_name, "z2ram"); | 356 | sprintf(z2ram_gendisk->disk_name, "z2ram"); |
357 | strcpy(z2ram_gendisk->devfs_name, z2ram_gendisk->disk_name); | ||
358 | 357 | ||
359 | z2ram_gendisk->queue = z2_queue; | 358 | z2ram_gendisk->queue = z2_queue; |
360 | add_disk(z2ram_gendisk); | 359 | add_disk(z2ram_gendisk); |
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); |
diff --git a/drivers/md/md.c b/drivers/md/md.c index 95c275d19316..2ec1b3520a0b 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -2910,13 +2910,10 @@ static struct kobject *md_probe(dev_t dev, int *part, void *data) | |||
2910 | } | 2910 | } |
2911 | disk->major = MAJOR(dev); | 2911 | disk->major = MAJOR(dev); |
2912 | disk->first_minor = unit << shift; | 2912 | disk->first_minor = unit << shift; |
2913 | if (partitioned) { | 2913 | if (partitioned) |
2914 | sprintf(disk->disk_name, "md_d%d", unit); | 2914 | sprintf(disk->disk_name, "md_d%d", unit); |
2915 | sprintf(disk->devfs_name, "md/d%d", unit); | 2915 | else |
2916 | } else { | ||
2917 | sprintf(disk->disk_name, "md%d", unit); | 2916 | sprintf(disk->disk_name, "md%d", unit); |
2918 | sprintf(disk->devfs_name, "md/%d", unit); | ||
2919 | } | ||
2920 | disk->fops = &md_fops; | 2917 | disk->fops = &md_fops; |
2921 | disk->private_data = mddev; | 2918 | disk->private_data = mddev; |
2922 | disk->queue = mddev->queue; | 2919 | disk->queue = mddev->queue; |
diff --git a/drivers/message/i2o/i2o_block.c b/drivers/message/i2o/i2o_block.c index 7d4c5497785b..1ddc2fb429d5 100644 --- a/drivers/message/i2o/i2o_block.c +++ b/drivers/message/i2o/i2o_block.c | |||
@@ -1089,7 +1089,6 @@ static int i2o_block_probe(struct device *dev) | |||
1089 | gd = i2o_blk_dev->gd; | 1089 | gd = i2o_blk_dev->gd; |
1090 | gd->first_minor = unit << 4; | 1090 | gd->first_minor = unit << 4; |
1091 | sprintf(gd->disk_name, "i2o/hd%c", 'a' + unit); | 1091 | sprintf(gd->disk_name, "i2o/hd%c", 'a' + unit); |
1092 | sprintf(gd->devfs_name, "i2o/hd%c", 'a' + unit); | ||
1093 | gd->driverfs_dev = &i2o_dev->device; | 1092 | gd->driverfs_dev = &i2o_dev->device; |
1094 | 1093 | ||
1095 | /* setup request queue */ | 1094 | /* setup request queue */ |
diff --git a/drivers/mmc/mmc_block.c b/drivers/mmc/mmc_block.c index 46138f4e2081..115cc21094b9 100644 --- a/drivers/mmc/mmc_block.c +++ b/drivers/mmc/mmc_block.c | |||
@@ -408,7 +408,6 @@ static struct mmc_blk_data *mmc_blk_alloc(struct mmc_card *card) | |||
408 | */ | 408 | */ |
409 | 409 | ||
410 | sprintf(md->disk->disk_name, "mmcblk%d", devidx); | 410 | sprintf(md->disk->disk_name, "mmcblk%d", devidx); |
411 | sprintf(md->disk->devfs_name, "mmc/blk%d", devidx); | ||
412 | 411 | ||
413 | blk_queue_hardsect_size(md->queue.queue, 1 << md->block_bits); | 412 | blk_queue_hardsect_size(md->queue.queue, 1 << md->block_bits); |
414 | 413 | ||
diff --git a/drivers/s390/block/dasd_genhd.c b/drivers/s390/block/dasd_genhd.c index fce2835e7d19..61ffde718a7a 100644 --- a/drivers/s390/block/dasd_genhd.c +++ b/drivers/s390/block/dasd_genhd.c | |||
@@ -68,8 +68,6 @@ dasd_gendisk_alloc(struct dasd_device *device) | |||
68 | } | 68 | } |
69 | len += sprintf(gdp->disk_name + len, "%c", 'a'+(device->devindex%26)); | 69 | len += sprintf(gdp->disk_name + len, "%c", 'a'+(device->devindex%26)); |
70 | 70 | ||
71 | sprintf(gdp->devfs_name, "dasd/%s", device->cdev->dev.bus_id); | ||
72 | |||
73 | if (device->features & DASD_FEATURE_READONLY) | 71 | if (device->features & DASD_FEATURE_READONLY) |
74 | set_disk_ro(gdp, 1); | 72 | set_disk_ro(gdp, 1); |
75 | gdp->private_data = device; | 73 | gdp->private_data = device; |
diff --git a/drivers/s390/block/xpram.c b/drivers/s390/block/xpram.c index f57a6c8816b8..4c1e56b9b98d 100644 --- a/drivers/s390/block/xpram.c +++ b/drivers/s390/block/xpram.c | |||
@@ -466,7 +466,6 @@ static int __init xpram_setup_blkdev(void) | |||
466 | disk->private_data = &xpram_devices[i]; | 466 | disk->private_data = &xpram_devices[i]; |
467 | disk->queue = xpram_queue; | 467 | disk->queue = xpram_queue; |
468 | sprintf(disk->disk_name, "slram%d", i); | 468 | sprintf(disk->disk_name, "slram%d", i); |
469 | sprintf(disk->devfs_name, "slram/%d", i); | ||
470 | set_capacity(disk, xpram_sizes[i] << 1); | 469 | set_capacity(disk, xpram_sizes[i] << 1); |
471 | add_disk(disk); | 470 | add_disk(disk); |
472 | } | 471 | } |
diff --git a/include/linux/genhd.h b/include/linux/genhd.h index 3498a0c68184..e4af57e87c17 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h | |||
@@ -112,8 +112,6 @@ struct gendisk { | |||
112 | sector_t capacity; | 112 | sector_t capacity; |
113 | 113 | ||
114 | int flags; | 114 | int flags; |
115 | char devfs_name[64]; /* devfs crap */ | ||
116 | int number; /* more of the same */ | ||
117 | struct device *driverfs_dev; | 115 | struct device *driverfs_dev; |
118 | struct kobject kobj; | 116 | struct kobject kobj; |
119 | struct kobject *holder_dir; | 117 | struct kobject *holder_dir; |