]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] I2C: remove devfs support from i2c-dev driver
authorGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 Oct 2005 22:23:27 +0000 (00:23 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Oct 2005 21:02:14 +0000 (14:02 -0700)
as devfs is gone, this isn't needed anymore.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/i2c-dev.c

index 276ec42a07177c7da37de3c1b79ed58b4b494fe9..ea14c8f1c82baa58b7df2e12921e36c720c1bf85 100644 (file)
 
 /* The I2C_RDWR ioctl code is written by Kolja Waschk <waschk@telos.de> */
 
-/* The devfs code is contributed by Philipp Matthias Hahn 
-   <pmhahn@titan.lahn.de> */
-
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/fs.h>
 #include <linux/slab.h>
 #include <linux/smp_lock.h>
-#include <linux/devfs_fs_kernel.h>
 #include <linux/init.h>
 #include <linux/i2c.h>
 #include <linux/i2c-dev.h>
@@ -431,8 +427,6 @@ static int i2cdev_attach_adapter(struct i2c_adapter *adap)
        if (IS_ERR(i2c_dev))
                return PTR_ERR(i2c_dev);
 
-       devfs_mk_cdev(MKDEV(I2C_MAJOR, i2c_dev->minor),
-                       S_IFCHR|S_IRUSR|S_IWUSR, "i2c/%d", i2c_dev->minor);
        pr_debug("i2c-dev: adapter [%s] registered as minor %d\n",
                 adap->name, i2c_dev->minor);
 
@@ -465,7 +459,6 @@ static int i2cdev_detach_adapter(struct i2c_adapter *adap)
                return -ENODEV;
 
        init_completion(&i2c_dev->released);
-       devfs_remove("i2c/%d", i2c_dev->minor);
        return_i2c_dev(i2c_dev);
        class_device_unregister(&i2c_dev->class_dev);
        wait_for_completion(&i2c_dev->released);
@@ -521,8 +514,6 @@ static int __init i2c_dev_init(void)
        if (res)
                goto out_unreg_class;
 
-       devfs_mk_dir("i2c");
-
        return 0;
 
 out_unreg_class:
@@ -538,7 +529,6 @@ static void __exit i2c_dev_exit(void)
 {
        i2c_del_driver(&i2cdev_driver);
        class_unregister(&i2c_dev_class);
-       devfs_remove("i2c");
        unregister_chrdev(I2C_MAJOR,"i2c");
 }