From 95dc112a5770dc670a1b45a3d9ee346fdd2b2697 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 20 Jun 2005 21:15:16 -0700 Subject: [PATCH] devfs: Remove devfs_mk_dir() function from the kernel tree Removes the devfs_mk_dir() function and all callers of it. Signed-off-by: Greg Kroah-Hartman --- drivers/char/ipmi/ipmi_devintf.c | 2 -- drivers/char/istallion.c | 1 - drivers/char/lp.c | 1 - drivers/char/ppdev.c | 1 - drivers/char/pty.c | 1 - drivers/char/stallion.c | 1 - drivers/char/tipar.c | 3 --- 7 files changed, 10 deletions(-) (limited to 'drivers/char') 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) ipmi_major = rv; } - devfs_mk_dir(DEVICE_NAME); - rv = ipmi_smi_watcher_register(&smi_watcher); if (rv) { 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) printk(KERN_ERR "STALLION: failed to register serial memory " "device\n"); - devfs_mk_dir("staliomem"); istallion_class = class_create(THIS_MODULE, "staliomem"); for (i = 0; i < 4; i++) { 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) return -EIO; } - devfs_mk_dir("printers"); lp_class = class_create(THIS_MODULE, "printer"); if (IS_ERR(lp_class)) { 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) err = PTR_ERR(ppdev_class); goto out_chrdev; } - devfs_mk_dir("parports"); for (i = 0; i < PARPORT_MAX; i++) { devfs_mk_cdev(MKDEV(PP_MAJOR, i), 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, static void __init unix98_pty_init(void) { - devfs_mk_dir("pts"); ptm_driver = alloc_tty_driver(NR_UNIX98_PTY_MAX); if (!ptm_driver) 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) */ if (register_chrdev(STL_SIOMEMMAJOR, "staliomem", &stl_fsiomem)) printk("STALLION: failed to register serial board device\n"); - devfs_mk_dir("staliomem"); stallion_class = class_create(THIS_MODULE, "staliomem"); 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) goto out; } - /* Use devfs with tree: /dev/ticables/par/[0..2] */ - devfs_mk_dir("ticables/par"); - tipar_class = class_create(THIS_MODULE, "ticables"); if (IS_ERR(tipar_class)) { err = PTR_ERR(tipar_class); -- cgit v1.2.2