diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/md.c | 7 |
1 files changed, 2 insertions, 5 deletions
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; |