diff options
Diffstat (limited to 'drivers/block/rd.c')
-rw-r--r-- | drivers/block/rd.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/block/rd.c b/drivers/block/rd.c index 0378da04cfa2..a9e1c2524c2a 100644 --- a/drivers/block/rd.c +++ b/drivers/block/rd.c | |||
@@ -50,7 +50,6 @@ | |||
50 | #include <linux/module.h> | 50 | #include <linux/module.h> |
51 | #include <linux/moduleparam.h> | 51 | #include <linux/moduleparam.h> |
52 | #include <linux/init.h> | 52 | #include <linux/init.h> |
53 | #include <linux/devfs_fs_kernel.h> | ||
54 | #include <linux/pagemap.h> | 53 | #include <linux/pagemap.h> |
55 | #include <linux/blkdev.h> | 54 | #include <linux/blkdev.h> |
56 | #include <linux/genhd.h> | 55 | #include <linux/genhd.h> |
@@ -412,7 +411,6 @@ static void __exit rd_cleanup(void) | |||
412 | put_disk(rd_disks[i]); | 411 | put_disk(rd_disks[i]); |
413 | blk_cleanup_queue(rd_queue[i]); | 412 | blk_cleanup_queue(rd_queue[i]); |
414 | } | 413 | } |
415 | devfs_remove("rd"); | ||
416 | unregister_blkdev(RAMDISK_MAJOR, "ramdisk"); | 414 | unregister_blkdev(RAMDISK_MAJOR, "ramdisk"); |
417 | } | 415 | } |
418 | 416 | ||
@@ -442,8 +440,6 @@ static int __init rd_init(void) | |||
442 | goto out; | 440 | goto out; |
443 | } | 441 | } |
444 | 442 | ||
445 | devfs_mk_dir("rd"); | ||
446 | |||
447 | for (i = 0; i < CONFIG_BLK_DEV_RAM_COUNT; i++) { | 443 | for (i = 0; i < CONFIG_BLK_DEV_RAM_COUNT; i++) { |
448 | struct gendisk *disk = rd_disks[i]; | 444 | struct gendisk *disk = rd_disks[i]; |
449 | 445 | ||
@@ -461,7 +457,6 @@ static int __init rd_init(void) | |||
461 | disk->queue = rd_queue[i]; | 457 | disk->queue = rd_queue[i]; |
462 | disk->flags |= GENHD_FL_SUPPRESS_PARTITION_INFO; | 458 | disk->flags |= GENHD_FL_SUPPRESS_PARTITION_INFO; |
463 | sprintf(disk->disk_name, "ram%d", i); | 459 | sprintf(disk->disk_name, "ram%d", i); |
464 | sprintf(disk->devfs_name, "rd/%d", i); | ||
465 | set_capacity(disk, rd_size * 2); | 460 | set_capacity(disk, rd_size * 2); |
466 | add_disk(rd_disks[i]); | 461 | add_disk(rd_disks[i]); |
467 | } | 462 | } |