diff options
Diffstat (limited to 'drivers/block/ub.c')
-rw-r--r-- | drivers/block/ub.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/ub.c b/drivers/block/ub.c index ba05e31709d5..813805908dec 100644 --- a/drivers/block/ub.c +++ b/drivers/block/ub.c | |||
@@ -115,7 +115,7 @@ | |||
115 | /* | 115 | /* |
116 | */ | 116 | */ |
117 | 117 | ||
118 | #define UB_MINORS_PER_MAJOR 8 | 118 | #define UB_PARTS_PER_LUN 8 |
119 | 119 | ||
120 | #define UB_MAX_CDB_SIZE 16 /* Corresponds to Bulk */ | 120 | #define UB_MAX_CDB_SIZE 16 /* Corresponds to Bulk */ |
121 | 121 | ||
@@ -2473,14 +2473,14 @@ static int ub_probe_lun(struct ub_dev *sc, int lnum) | |||
2473 | ub_revalidate(sc, lun); | 2473 | ub_revalidate(sc, lun); |
2474 | 2474 | ||
2475 | rc = -ENOMEM; | 2475 | rc = -ENOMEM; |
2476 | if ((disk = alloc_disk(UB_MINORS_PER_MAJOR)) == NULL) | 2476 | if ((disk = alloc_disk(UB_PARTS_PER_LUN)) == NULL) |
2477 | goto err_diskalloc; | 2477 | goto err_diskalloc; |
2478 | 2478 | ||
2479 | lun->disk = disk; | 2479 | lun->disk = disk; |
2480 | sprintf(disk->disk_name, DRV_NAME "%c", lun->id + 'a'); | 2480 | sprintf(disk->disk_name, DRV_NAME "%c", lun->id + 'a'); |
2481 | sprintf(disk->devfs_name, DEVFS_NAME "/%c", lun->id + 'a'); | 2481 | sprintf(disk->devfs_name, DEVFS_NAME "/%c", lun->id + 'a'); |
2482 | disk->major = UB_MAJOR; | 2482 | disk->major = UB_MAJOR; |
2483 | disk->first_minor = lun->id * UB_MINORS_PER_MAJOR; | 2483 | disk->first_minor = lun->id * UB_PARTS_PER_LUN; |
2484 | disk->fops = &ub_bd_fops; | 2484 | disk->fops = &ub_bd_fops; |
2485 | disk->private_data = lun; | 2485 | disk->private_data = lun; |
2486 | disk->driverfs_dev = &sc->intf->dev; | 2486 | disk->driverfs_dev = &sc->intf->dev; |