diff options
Diffstat (limited to 'drivers/mtd/mtd_blkdevs.c')
-rw-r--r-- | drivers/mtd/mtd_blkdevs.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c index f8d2185819e7..5d0e13d9f24a 100644 --- a/drivers/mtd/mtd_blkdevs.c +++ b/drivers/mtd/mtd_blkdevs.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * $Id: mtd_blkdevs.c,v 1.24 2004/11/16 18:28:59 dwmw2 Exp $ | 2 | * $Id: mtd_blkdevs.c,v 1.25 2005/07/29 01:57:55 tpoynor Exp $ |
3 | * | 3 | * |
4 | * (C) 2003 David Woodhouse <dwmw2@infradead.org> | 4 | * (C) 2003 David Woodhouse <dwmw2@infradead.org> |
5 | * | 5 | * |
@@ -21,7 +21,6 @@ | |||
21 | #include <linux/init.h> | 21 | #include <linux/init.h> |
22 | #include <asm/semaphore.h> | 22 | #include <asm/semaphore.h> |
23 | #include <asm/uaccess.h> | 23 | #include <asm/uaccess.h> |
24 | #include <linux/devfs_fs_kernel.h> | ||
25 | 24 | ||
26 | static LIST_HEAD(blktrans_majors); | 25 | static LIST_HEAD(blktrans_majors); |
27 | 26 | ||
@@ -292,8 +291,6 @@ int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new) | |||
292 | 291 | ||
293 | snprintf(gd->disk_name, sizeof(gd->disk_name), | 292 | snprintf(gd->disk_name, sizeof(gd->disk_name), |
294 | "%s%c", tr->name, (tr->part_bits?'a':'0') + new->devnum); | 293 | "%s%c", tr->name, (tr->part_bits?'a':'0') + new->devnum); |
295 | snprintf(gd->devfs_name, sizeof(gd->devfs_name), | ||
296 | "%s/%c", tr->name, (tr->part_bits?'a':'0') + new->devnum); | ||
297 | 294 | ||
298 | /* 2.5 has capacity in units of 512 bytes while still | 295 | /* 2.5 has capacity in units of 512 bytes while still |
299 | having BLOCK_SIZE_BITS set to 10. Just to keep us amused. */ | 296 | having BLOCK_SIZE_BITS set to 10. Just to keep us amused. */ |
@@ -411,8 +408,6 @@ int register_mtd_blktrans(struct mtd_blktrans_ops *tr) | |||
411 | return ret; | 408 | return ret; |
412 | } | 409 | } |
413 | 410 | ||
414 | devfs_mk_dir(tr->name); | ||
415 | |||
416 | INIT_LIST_HEAD(&tr->devs); | 411 | INIT_LIST_HEAD(&tr->devs); |
417 | list_add(&tr->list, &blktrans_majors); | 412 | list_add(&tr->list, &blktrans_majors); |
418 | 413 | ||
@@ -445,7 +440,6 @@ int deregister_mtd_blktrans(struct mtd_blktrans_ops *tr) | |||
445 | tr->remove_dev(dev); | 440 | tr->remove_dev(dev); |
446 | } | 441 | } |
447 | 442 | ||
448 | devfs_remove(tr->name); | ||
449 | blk_cleanup_queue(tr->blkcore_priv->rq); | 443 | blk_cleanup_queue(tr->blkcore_priv->rq); |
450 | unregister_blkdev(tr->major, tr->name); | 444 | unregister_blkdev(tr->major, tr->name); |
451 | 445 | ||