aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/um/drivers/ubd_kern.c2
-rw-r--r--drivers/block/acsi_slm.c1
-rw-r--r--drivers/block/floppy.c2
-rw-r--r--drivers/block/loop.c2
-rw-r--r--drivers/block/nbd.c1
-rw-r--r--drivers/block/paride/pg.c1
-rw-r--r--drivers/block/paride/pt.c1
-rw-r--r--drivers/block/rd.c2
-rw-r--r--drivers/block/swim3.c2
-rw-r--r--drivers/block/sx8.c2
-rw-r--r--drivers/block/ub.c1
-rw-r--r--drivers/cdrom/sbpcd.c2
-rw-r--r--drivers/char/ipmi/ipmi_devintf.c2
-rw-r--r--drivers/char/istallion.c1
-rw-r--r--drivers/char/lp.c1
-rw-r--r--drivers/char/ppdev.c1
-rw-r--r--drivers/char/pty.c1
-rw-r--r--drivers/char/stallion.c1
-rw-r--r--drivers/char/tipar.c3
-rw-r--r--drivers/md/dm-ioctl.c1
-rw-r--r--drivers/md/md.c1
-rw-r--r--drivers/media/dvb/dvb-core/dvbdev.c3
-rw-r--r--drivers/mmc/mmc_block.c1
-rw-r--r--drivers/net/wan/cosa.c1
-rw-r--r--drivers/s390/block/dasd.c3
-rw-r--r--drivers/s390/block/xpram.c2
-rw-r--r--drivers/sbus/char/bpp.c1
-rw-r--r--drivers/sbus/char/vfc_dev.c1
-rw-r--r--drivers/video/fbmem.c1
-rw-r--r--fs/coda/psdev.c1
-rw-r--r--include/linux/devfs_fs_kernel.h4
-rw-r--r--mm/shmem.c4
-rw-r--r--mm/tiny-shmem.c3
33 files changed, 1 insertions, 55 deletions
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c
index 0897852b09a3..8f6bb9375193 100644
--- a/arch/um/drivers/ubd_kern.c
+++ b/arch/um/drivers/ubd_kern.c
@@ -841,7 +841,6 @@ int ubd_init(void)
841{ 841{
842 int i; 842 int i;
843 843
844 devfs_mk_dir("ubd");
845 if (register_blkdev(MAJOR_NR, "ubd")) 844 if (register_blkdev(MAJOR_NR, "ubd"))
846 return -1; 845 return -1;
847 846
@@ -855,7 +854,6 @@ int ubd_init(void)
855 char name[sizeof("ubd_nnn\0")]; 854 char name[sizeof("ubd_nnn\0")];
856 855
857 snprintf(name, sizeof(name), "ubd_%d", fake_major); 856 snprintf(name, sizeof(name), "ubd_%d", fake_major);
858 devfs_mk_dir(name);
859 if (register_blkdev(fake_major, "ubd")) 857 if (register_blkdev(fake_major, "ubd"))
860 return -1; 858 return -1;
861 } 859 }
diff --git a/drivers/block/acsi_slm.c b/drivers/block/acsi_slm.c
index 4cb9c1336287..1ecbcc3da147 100644
--- a/drivers/block/acsi_slm.c
+++ b/drivers/block/acsi_slm.c
@@ -1005,7 +1005,6 @@ int slm_init( void )
1005 BufferP = SLMBuffer; 1005 BufferP = SLMBuffer;
1006 SLMState = IDLE; 1006 SLMState = IDLE;
1007 1007
1008 devfs_mk_dir("slm");
1009 for (i = 0; i < MAX_SLM; i++) { 1008 for (i = 0; i < MAX_SLM; i++) {
1010 devfs_mk_cdev(MKDEV(ACSI_MAJOR, i), 1009 devfs_mk_cdev(MKDEV(ACSI_MAJOR, i),
1011 S_IFCHR|S_IRUSR|S_IWUSR, "slm/%d", i); 1010 S_IFCHR|S_IRUSR|S_IWUSR, "slm/%d", i);
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c
index dff1e67b1dd4..03a4dff05f27 100644
--- a/drivers/block/floppy.c
+++ b/drivers/block/floppy.c
@@ -4261,8 +4261,6 @@ static int __init floppy_init(void)
4261 motor_off_timer[dr].function = motor_off_callback; 4261 motor_off_timer[dr].function = motor_off_callback;
4262 } 4262 }
4263 4263
4264 devfs_mk_dir("floppy");
4265
4266 err = register_blkdev(FLOPPY_MAJOR, "fd"); 4264 err = register_blkdev(FLOPPY_MAJOR, "fd");
4267 if (err) 4265 if (err)
4268 goto out_devfs_remove; 4266 goto out_devfs_remove;
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 3c74ea729fc7..f650d20f2a17 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -1277,8 +1277,6 @@ static int __init loop_init(void)
1277 goto out_mem3; 1277 goto out_mem3;
1278 } 1278 }
1279 1279
1280 devfs_mk_dir("loop");
1281
1282 for (i = 0; i < max_loop; i++) { 1280 for (i = 0; i < max_loop; i++) {
1283 struct loop_device *lo = &loop_dev[i]; 1281 struct loop_device *lo = &loop_dev[i];
1284 struct gendisk *disk = disks[i]; 1282 struct gendisk *disk = disks[i];
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
index 7f554f2ed079..618e258ca5d0 100644
--- a/drivers/block/nbd.c
+++ b/drivers/block/nbd.c
@@ -642,7 +642,6 @@ static int __init nbd_init(void)
642 printk(KERN_INFO "nbd: registered device at major %d\n", NBD_MAJOR); 642 printk(KERN_INFO "nbd: registered device at major %d\n", NBD_MAJOR);
643 dprintk(DBG_INIT, "nbd: debugflags=0x%x\n", debugflags); 643 dprintk(DBG_INIT, "nbd: debugflags=0x%x\n", debugflags);
644 644
645 devfs_mk_dir("nbd");
646 for (i = 0; i < nbds_max; i++) { 645 for (i = 0; i < nbds_max; i++) {
647 struct gendisk *disk = nbd_dev[i].disk; 646 struct gendisk *disk = nbd_dev[i].disk;
648 nbd_dev[i].file = NULL; 647 nbd_dev[i].file = NULL;
diff --git a/drivers/block/paride/pg.c b/drivers/block/paride/pg.c
index 79b868254032..9f72bdd2e206 100644
--- a/drivers/block/paride/pg.c
+++ b/drivers/block/paride/pg.c
@@ -674,7 +674,6 @@ static int __init pg_init(void)
674 err = PTR_ERR(pg_class); 674 err = PTR_ERR(pg_class);
675 goto out_chrdev; 675 goto out_chrdev;
676 } 676 }
677 devfs_mk_dir("pg");
678 for (unit = 0; unit < PG_UNITS; unit++) { 677 for (unit = 0; unit < PG_UNITS; unit++) {
679 struct pg *dev = &devices[unit]; 678 struct pg *dev = &devices[unit];
680 if (dev->present) { 679 if (dev->present) {
diff --git a/drivers/block/paride/pt.c b/drivers/block/paride/pt.c
index d2013d362403..7adadd5b29fc 100644
--- a/drivers/block/paride/pt.c
+++ b/drivers/block/paride/pt.c
@@ -971,7 +971,6 @@ static int __init pt_init(void)
971 goto out_chrdev; 971 goto out_chrdev;
972 } 972 }
973 973
974 devfs_mk_dir("pt");
975 for (unit = 0; unit < PT_UNITS; unit++) 974 for (unit = 0; unit < PT_UNITS; unit++)
976 if (pt[unit].present) { 975 if (pt[unit].present) {
977 class_device_create(pt_class, NULL, MKDEV(major, unit), 976 class_device_create(pt_class, NULL, MKDEV(major, unit),
diff --git a/drivers/block/rd.c b/drivers/block/rd.c
index 940bfd7951e5..67821a8c6210 100644
--- a/drivers/block/rd.c
+++ b/drivers/block/rd.c
@@ -442,8 +442,6 @@ static int __init rd_init(void)
442 goto out; 442 goto out;
443 } 443 }
444 444
445 devfs_mk_dir("rd");
446
447 for (i = 0; i < CONFIG_BLK_DEV_RAM_COUNT; i++) { 445 for (i = 0; i < CONFIG_BLK_DEV_RAM_COUNT; i++) {
448 struct gendisk *disk = rd_disks[i]; 446 struct gendisk *disk = rd_disks[i];
449 447
diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c
index 01f042f6f1c4..018b2921e8fc 100644
--- a/drivers/block/swim3.c
+++ b/drivers/block/swim3.c
@@ -1019,8 +1019,6 @@ int swim3_init(void)
1019 int err = -ENOMEM; 1019 int err = -ENOMEM;
1020 int i; 1020 int i;
1021 1021
1022 devfs_mk_dir("floppy");
1023
1024 swim = find_devices("floppy"); 1022 swim = find_devices("floppy");
1025 while (swim && (floppy_count < MAX_FLOPPIES)) 1023 while (swim && (floppy_count < MAX_FLOPPIES))
1026 { 1024 {
diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c
index 2ae08b343b93..9fb3f51e574e 100644
--- a/drivers/block/sx8.c
+++ b/drivers/block/sx8.c
@@ -1672,8 +1672,6 @@ static int carm_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
1672 if (host->flags & FL_DYN_MAJOR) 1672 if (host->flags & FL_DYN_MAJOR)
1673 host->major = rc; 1673 host->major = rc;
1674 1674
1675 devfs_mk_dir(DRV_NAME);
1676
1677 rc = carm_init_disks(host); 1675 rc = carm_init_disks(host);
1678 if (rc) 1676 if (rc)
1679 goto err_out_blkdev_disks; 1677 goto err_out_blkdev_disks;
diff --git a/drivers/block/ub.c b/drivers/block/ub.c
index 60e9a9457c6b..088e5ba15c24 100644
--- a/drivers/block/ub.c
+++ b/drivers/block/ub.c
@@ -2445,7 +2445,6 @@ static int __init ub_init(void)
2445 2445
2446 if ((rc = register_blkdev(UB_MAJOR, DRV_NAME)) != 0) 2446 if ((rc = register_blkdev(UB_MAJOR, DRV_NAME)) != 0)
2447 goto err_regblkdev; 2447 goto err_regblkdev;
2448 devfs_mk_dir(DEVFS_NAME);
2449 2448
2450 if ((rc = usb_register(&ub_driver)) != 0) 2449 if ((rc = usb_register(&ub_driver)) != 0)
2451 goto err_register; 2450 goto err_register;
diff --git a/drivers/cdrom/sbpcd.c b/drivers/cdrom/sbpcd.c
index 05c9e865ecaf..ee4499acf1a1 100644
--- a/drivers/cdrom/sbpcd.c
+++ b/drivers/cdrom/sbpcd.c
@@ -5808,8 +5808,6 @@ int __init sbpcd_init(void)
5808 return -ENOMEM; 5808 return -ENOMEM;
5809 } 5809 }
5810 5810
5811 devfs_mk_dir("sbp");
5812
5813 for (j=0;j<NR_SBPCD;j++) 5811 for (j=0;j<NR_SBPCD;j++)
5814 { 5812 {
5815 struct cdrom_device_info * sbpcd_infop; 5813 struct cdrom_device_info * sbpcd_infop;
diff --git a/drivers/char/ipmi/ipmi_devintf.c b/drivers/char/ipmi/ipmi_devintf.c
index e1c95374984c..55c57451ee1d 100644
--- a/drivers/char/ipmi/ipmi_devintf.c
+++ b/drivers/char/ipmi/ipmi_devintf.c
@@ -872,8 +872,6 @@ static __init int init_ipmi_devintf(void)
872 ipmi_major = rv; 872 ipmi_major = rv;
873 } 873 }
874 874
875 devfs_mk_dir(DEVICE_NAME);
876
877 rv = ipmi_smi_watcher_register(&smi_watcher); 875 rv = ipmi_smi_watcher_register(&smi_watcher);
878 if (rv) { 876 if (rv) {
879 unregister_chrdev(ipmi_major, DEVICE_NAME); 877 unregister_chrdev(ipmi_major, DEVICE_NAME);
diff --git a/drivers/char/istallion.c b/drivers/char/istallion.c
index ef20c1fc9c4c..d5054ea47472 100644
--- a/drivers/char/istallion.c
+++ b/drivers/char/istallion.c
@@ -5213,7 +5213,6 @@ int __init stli_init(void)
5213 printk(KERN_ERR "STALLION: failed to register serial memory " 5213 printk(KERN_ERR "STALLION: failed to register serial memory "
5214 "device\n"); 5214 "device\n");
5215 5215
5216 devfs_mk_dir("staliomem");
5217 istallion_class = class_create(THIS_MODULE, "staliomem"); 5216 istallion_class = class_create(THIS_MODULE, "staliomem");
5218 for (i = 0; i < 4; i++) { 5217 for (i = 0; i < 4; i++) {
5219 devfs_mk_cdev(MKDEV(STL_SIOMEMMAJOR, i), 5218 devfs_mk_cdev(MKDEV(STL_SIOMEMMAJOR, i),
diff --git a/drivers/char/lp.c b/drivers/char/lp.c
index e57260525293..f07a9e361f39 100644
--- a/drivers/char/lp.c
+++ b/drivers/char/lp.c
@@ -907,7 +907,6 @@ static int __init lp_init (void)
907 return -EIO; 907 return -EIO;
908 } 908 }
909 909
910 devfs_mk_dir("printers");
911 lp_class = class_create(THIS_MODULE, "printer"); 910 lp_class = class_create(THIS_MODULE, "printer");
912 if (IS_ERR(lp_class)) { 911 if (IS_ERR(lp_class)) {
913 err = PTR_ERR(lp_class); 912 err = PTR_ERR(lp_class);
diff --git a/drivers/char/ppdev.c b/drivers/char/ppdev.c
index bee6c47b45bd..d437a4c9e634 100644
--- a/drivers/char/ppdev.c
+++ b/drivers/char/ppdev.c
@@ -782,7 +782,6 @@ static int __init ppdev_init (void)
782 err = PTR_ERR(ppdev_class); 782 err = PTR_ERR(ppdev_class);
783 goto out_chrdev; 783 goto out_chrdev;
784 } 784 }
785 devfs_mk_dir("parports");
786 for (i = 0; i < PARPORT_MAX; i++) { 785 for (i = 0; i < PARPORT_MAX; i++) {
787 devfs_mk_cdev(MKDEV(PP_MAJOR, i), 786 devfs_mk_cdev(MKDEV(PP_MAJOR, i),
788 S_IFCHR | S_IRUGO | S_IWUGO, "parports/%d", i); 787 S_IFCHR | S_IRUGO | S_IWUGO, "parports/%d", i);
diff --git a/drivers/char/pty.c b/drivers/char/pty.c
index 9b5a2c0e7008..64d3d1d0b31b 100644
--- a/drivers/char/pty.c
+++ b/drivers/char/pty.c
@@ -351,7 +351,6 @@ static int pty_unix98_ioctl(struct tty_struct *tty, struct file *file,
351 351
352static void __init unix98_pty_init(void) 352static void __init unix98_pty_init(void)
353{ 353{
354 devfs_mk_dir("pts");
355 ptm_driver = alloc_tty_driver(NR_UNIX98_PTY_MAX); 354 ptm_driver = alloc_tty_driver(NR_UNIX98_PTY_MAX);
356 if (!ptm_driver) 355 if (!ptm_driver)
357 panic("Couldn't allocate Unix98 ptm driver"); 356 panic("Couldn't allocate Unix98 ptm driver");
diff --git a/drivers/char/stallion.c b/drivers/char/stallion.c
index a9c5a7230f89..c090a63fbdea 100644
--- a/drivers/char/stallion.c
+++ b/drivers/char/stallion.c
@@ -3069,7 +3069,6 @@ static int __init stl_init(void)
3069 */ 3069 */
3070 if (register_chrdev(STL_SIOMEMMAJOR, "staliomem", &stl_fsiomem)) 3070 if (register_chrdev(STL_SIOMEMMAJOR, "staliomem", &stl_fsiomem))
3071 printk("STALLION: failed to register serial board device\n"); 3071 printk("STALLION: failed to register serial board device\n");
3072 devfs_mk_dir("staliomem");
3073 3072
3074 stallion_class = class_create(THIS_MODULE, "staliomem"); 3073 stallion_class = class_create(THIS_MODULE, "staliomem");
3075 for (i = 0; i < 4; i++) { 3074 for (i = 0; i < 4; i++) {
diff --git a/drivers/char/tipar.c b/drivers/char/tipar.c
index 079db5a935a1..70cfe07ab999 100644
--- a/drivers/char/tipar.c
+++ b/drivers/char/tipar.c
@@ -507,9 +507,6 @@ tipar_init_module(void)
507 goto out; 507 goto out;
508 } 508 }
509 509
510 /* Use devfs with tree: /dev/ticables/par/[0..2] */
511 devfs_mk_dir("ticables/par");
512
513 tipar_class = class_create(THIS_MODULE, "ticables"); 510 tipar_class = class_create(THIS_MODULE, "ticables");
514 if (IS_ERR(tipar_class)) { 511 if (IS_ERR(tipar_class)) {
515 err = PTR_ERR(tipar_class); 512 err = PTR_ERR(tipar_class);
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
index 3edb3477f987..181971a978ba 100644
--- a/drivers/md/dm-ioctl.c
+++ b/drivers/md/dm-ioctl.c
@@ -68,7 +68,6 @@ static int dm_hash_init(void)
68{ 68{
69 init_buckets(_name_buckets); 69 init_buckets(_name_buckets);
70 init_buckets(_uuid_buckets); 70 init_buckets(_uuid_buckets);
71 devfs_mk_dir(DM_DIR);
72 return 0; 71 return 0;
73} 72}
74 73
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 306268ec99ff..33b1a8943e4a 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -5553,7 +5553,6 @@ static int __init md_init(void)
5553 unregister_blkdev(MAJOR_NR, "md"); 5553 unregister_blkdev(MAJOR_NR, "md");
5554 return -1; 5554 return -1;
5555 } 5555 }
5556 devfs_mk_dir("md");
5557 blk_register_region(MKDEV(MAJOR_NR, 0), MAX_MD_DEVS, THIS_MODULE, 5556 blk_register_region(MKDEV(MAJOR_NR, 0), MAX_MD_DEVS, THIS_MODULE,
5558 md_probe, NULL, NULL); 5557 md_probe, NULL, NULL);
5559 blk_register_region(MKDEV(mdp_major, 0), MAX_MD_DEVS<<MdpMinorShift, THIS_MODULE, 5558 blk_register_region(MKDEV(mdp_major, 0), MAX_MD_DEVS<<MdpMinorShift, THIS_MODULE,
diff --git a/drivers/media/dvb/dvb-core/dvbdev.c b/drivers/media/dvb/dvb-core/dvbdev.c
index 134c2bbbeeb5..cf78a72320e5 100644
--- a/drivers/media/dvb/dvb-core/dvbdev.c
+++ b/drivers/media/dvb/dvb-core/dvbdev.c
@@ -302,7 +302,6 @@ int dvb_register_adapter(struct dvb_adapter *adap, const char *name, struct modu
302 302
303 printk ("DVB: registering new adapter (%s).\n", name); 303 printk ("DVB: registering new adapter (%s).\n", name);
304 304
305 devfs_mk_dir("dvb/adapter%d", num);
306 adap->num = num; 305 adap->num = num;
307 adap->name = name; 306 adap->name = name;
308 adap->module = module; 307 adap->module = module;
@@ -410,8 +409,6 @@ static int __init init_dvbdev(void)
410 goto error; 409 goto error;
411 } 410 }
412 411
413 devfs_mk_dir("dvb");
414
415 dvb_class = class_create(THIS_MODULE, "dvb"); 412 dvb_class = class_create(THIS_MODULE, "dvb");
416 if (IS_ERR(dvb_class)) { 413 if (IS_ERR(dvb_class)) {
417 retval = PTR_ERR(dvb_class); 414 retval = PTR_ERR(dvb_class);
diff --git a/drivers/mmc/mmc_block.c b/drivers/mmc/mmc_block.c
index 587458b370b9..82c660bf1652 100644
--- a/drivers/mmc/mmc_block.c
+++ b/drivers/mmc/mmc_block.c
@@ -555,7 +555,6 @@ static int __init mmc_blk_init(void)
555 if (major == 0) 555 if (major == 0)
556 major = res; 556 major = res;
557 557
558 devfs_mk_dir("mmc");
559 return mmc_register_driver(&mmc_driver); 558 return mmc_register_driver(&mmc_driver);
560 559
561 out: 560 out:
diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c
index e392ee8b37a1..62b7087e44d0 100644
--- a/drivers/net/wan/cosa.c
+++ b/drivers/net/wan/cosa.c
@@ -393,7 +393,6 @@ static int __init cosa_init(void)
393 err = -ENODEV; 393 err = -ENODEV;
394 goto out; 394 goto out;
395 } 395 }
396 devfs_mk_dir("cosa");
397 cosa_class = class_create(THIS_MODULE, "cosa"); 396 cosa_class = class_create(THIS_MODULE, "cosa");
398 if (IS_ERR(cosa_class)) { 397 if (IS_ERR(cosa_class)) {
399 err = PTR_ERR(cosa_class); 398 err = PTR_ERR(cosa_class);
diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c
index cfb1fff3787c..09bf44fdb1d1 100644
--- a/drivers/s390/block/dasd.c
+++ b/drivers/s390/block/dasd.c
@@ -2111,9 +2111,6 @@ dasd_init(void)
2111 2111
2112 dasd_diag_discipline_pointer = NULL; 2112 dasd_diag_discipline_pointer = NULL;
2113 2113
2114 rc = devfs_mk_dir("dasd");
2115 if (rc)
2116 goto failed;
2117 rc = dasd_devmap_init(); 2114 rc = dasd_devmap_init();
2118 if (rc) 2115 if (rc)
2119 goto failed; 2116 goto failed;
diff --git a/drivers/s390/block/xpram.c b/drivers/s390/block/xpram.c
index 54ecd548c318..36bc01f83a51 100644
--- a/drivers/s390/block/xpram.c
+++ b/drivers/s390/block/xpram.c
@@ -439,8 +439,6 @@ static int __init xpram_setup_blkdev(void)
439 if (rc < 0) 439 if (rc < 0)
440 goto out; 440 goto out;
441 441
442 devfs_mk_dir("slram");
443
444 /* 442 /*
445 * Assign the other needed values: make request function, sizes and 443 * Assign the other needed values: make request function, sizes and
446 * hardsect size. All the minor devices feature the same value. 444 * hardsect size. All the minor devices feature the same value.
diff --git a/drivers/sbus/char/bpp.c b/drivers/sbus/char/bpp.c
index ccb20a6f5f36..03f6e9880692 100644
--- a/drivers/sbus/char/bpp.c
+++ b/drivers/sbus/char/bpp.c
@@ -1031,7 +1031,6 @@ static int __init bpp_init(void)
1031 instances[idx].opened = 0; 1031 instances[idx].opened = 0;
1032 probeLptPort(idx); 1032 probeLptPort(idx);
1033 } 1033 }
1034 devfs_mk_dir("bpp");
1035 for (idx = 0; idx < BPP_NO; idx++) { 1034 for (idx = 0; idx < BPP_NO; idx++) {
1036 devfs_mk_cdev(MKDEV(BPP_MAJOR, idx), 1035 devfs_mk_cdev(MKDEV(BPP_MAJOR, idx),
1037 S_IFCHR | S_IRUSR | S_IWUSR, "bpp/%d", idx); 1036 S_IFCHR | S_IRUSR | S_IWUSR, "bpp/%d", idx);
diff --git a/drivers/sbus/char/vfc_dev.c b/drivers/sbus/char/vfc_dev.c
index ddcd330b9e89..31232ce72071 100644
--- a/drivers/sbus/char/vfc_dev.c
+++ b/drivers/sbus/char/vfc_dev.c
@@ -677,7 +677,6 @@ static int vfc_probe(void)
677 kfree(vfc_dev_lst); 677 kfree(vfc_dev_lst);
678 return -EIO; 678 return -EIO;
679 } 679 }
680 devfs_mk_dir("vfc");
681 instance = 0; 680 instance = 0;
682 for_all_sbusdev(sdev, sbus) { 681 for_all_sbusdev(sdev, sbus) {
683 if (strcmp(sdev->prom_name, "vfc") == 0) { 682 if (strcmp(sdev->prom_name, "vfc") == 0) {
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c
index 31143afe7c95..93546a848f46 100644
--- a/drivers/video/fbmem.c
+++ b/drivers/video/fbmem.c
@@ -1432,7 +1432,6 @@ fbmem_init(void)
1432{ 1432{
1433 create_proc_read_entry("fb", 0, NULL, fbmem_read_proc, NULL); 1433 create_proc_read_entry("fb", 0, NULL, fbmem_read_proc, NULL);
1434 1434
1435 devfs_mk_dir("fb");
1436 if (register_chrdev(FB_MAJOR,"fb",&fb_fops)) 1435 if (register_chrdev(FB_MAJOR,"fb",&fb_fops))
1437 printk("unable to get major %d for fb devs\n", FB_MAJOR); 1436 printk("unable to get major %d for fb devs\n", FB_MAJOR);
1438 1437
diff --git a/fs/coda/psdev.c b/fs/coda/psdev.c
index 7caee8d8ea3b..a193823f9058 100644
--- a/fs/coda/psdev.c
+++ b/fs/coda/psdev.c
@@ -365,7 +365,6 @@ static int init_coda_psdev(void)
365 err = PTR_ERR(coda_psdev_class); 365 err = PTR_ERR(coda_psdev_class);
366 goto out_chrdev; 366 goto out_chrdev;
367 } 367 }
368 devfs_mk_dir ("coda");
369 for (i = 0; i < MAX_CODADEVS; i++) { 368 for (i = 0; i < MAX_CODADEVS; i++) {
370 class_device_create(coda_psdev_class, NULL, 369 class_device_create(coda_psdev_class, NULL,
371 MKDEV(CODA_PSDEV_MAJOR,i), NULL, "cfs%d", i); 370 MKDEV(CODA_PSDEV_MAJOR,i), NULL, "cfs%d", i);
diff --git a/include/linux/devfs_fs_kernel.h b/include/linux/devfs_fs_kernel.h
index d1dd876bc1a2..ef8766e172ef 100644
--- a/include/linux/devfs_fs_kernel.h
+++ b/include/linux/devfs_fs_kernel.h
@@ -18,10 +18,6 @@ static inline int devfs_mk_symlink(const char *name, const char *link)
18{ 18{
19 return 0; 19 return 0;
20} 20}
21static inline int devfs_mk_dir(const char *fmt, ...)
22{
23 return 0;
24}
25static inline void devfs_remove(const char *fmt, ...) 21static inline void devfs_remove(const char *fmt, ...)
26{ 22{
27} 23}
diff --git a/mm/shmem.c b/mm/shmem.c
index 38bc3334f263..a4161abb9e76 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -2252,9 +2252,7 @@ static int __init init_tmpfs(void)
2252 printk(KERN_ERR "Could not register tmpfs\n"); 2252 printk(KERN_ERR "Could not register tmpfs\n");
2253 goto out2; 2253 goto out2;
2254 } 2254 }
2255#ifdef CONFIG_TMPFS 2255
2256 devfs_mk_dir("shm");
2257#endif
2258 shm_mnt = vfs_kern_mount(&tmpfs_fs_type, MS_NOUSER, 2256 shm_mnt = vfs_kern_mount(&tmpfs_fs_type, MS_NOUSER,
2259 tmpfs_fs_type.name, NULL); 2257 tmpfs_fs_type.name, NULL);
2260 if (IS_ERR(shm_mnt)) { 2258 if (IS_ERR(shm_mnt)) {
diff --git a/mm/tiny-shmem.c b/mm/tiny-shmem.c
index f9d6a9cc91c4..11ab99b8c61f 100644
--- a/mm/tiny-shmem.c
+++ b/mm/tiny-shmem.c
@@ -33,9 +33,6 @@ static int __init init_tmpfs(void)
33{ 33{
34 BUG_ON(register_filesystem(&tmpfs_fs_type) != 0); 34 BUG_ON(register_filesystem(&tmpfs_fs_type) != 0);
35 35
36#ifdef CONFIG_TMPFS
37 devfs_mk_dir("shm");
38#endif
39 shm_mnt = kern_mount(&tmpfs_fs_type); 36 shm_mnt = kern_mount(&tmpfs_fs_type);
40 BUG_ON(IS_ERR(shm_mnt)); 37 BUG_ON(IS_ERR(shm_mnt));
41 38