diff options
Diffstat (limited to 'drivers/block')
-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 |
15 files changed, 1 insertions, 21 deletions
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); |