aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2005-06-21 00:15:16 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-26 15:25:08 -0400
commitce7b0f46bbf4bff8daab2dd3d878b9e72a623d09 (patch)
tree7a860cf52fbf1ff768197702af60a8329d296dff /drivers/md/md.c
parent96192ff1a9d0c6ef365d21667080259d83ea2f5b (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/md/md.c')
-rw-r--r--drivers/md/md.c7
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;