diff options
author | Namhyung Kim <namhyung@gmail.com> | 2011-01-12 17:00:37 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 08:03:17 -0800 |
commit | e6d7202b66d99bf514c8e901db68386b1fcd6d56 (patch) | |
tree | 2e01041b3173c2d1ce511643c04466c9e1f066db /fs/char_dev.c | |
parent | ceff1a770933e2ca2bf995b453dade4ec47a9878 (diff) | |
download | kernel_samsung_tuna-e6d7202b66d99bf514c8e901db68386b1fcd6d56.zip kernel_samsung_tuna-e6d7202b66d99bf514c8e901db68386b1fcd6d56.tar.gz kernel_samsung_tuna-e6d7202b66d99bf514c8e901db68386b1fcd6d56.tar.bz2 |
fs/char_dev.c: remove unused cdev_index()
Commit 66fa12c571d3 ("ieee1394: remove the old IEEE 1394 driver stack")
eliminated the only user of cdev_index(). So it can be removed too.
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/char_dev.c')
-rw-r--r-- | fs/char_dev.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/char_dev.c b/fs/char_dev.c index e5b9df9..6e99b9d 100644 --- a/fs/char_dev.c +++ b/fs/char_dev.c @@ -417,18 +417,6 @@ static int chrdev_open(struct inode *inode, struct file *filp) return ret; } -int cdev_index(struct inode *inode) -{ - int idx; - struct kobject *kobj; - - kobj = kobj_lookup(cdev_map, inode->i_rdev, &idx); - if (!kobj) - return -1; - kobject_put(kobj); - return idx; -} - void cd_forget(struct inode *inode) { spin_lock(&cdev_lock); @@ -582,7 +570,6 @@ EXPORT_SYMBOL(cdev_init); EXPORT_SYMBOL(cdev_alloc); EXPORT_SYMBOL(cdev_del); EXPORT_SYMBOL(cdev_add); -EXPORT_SYMBOL(cdev_index); EXPORT_SYMBOL(__register_chrdev); EXPORT_SYMBOL(__unregister_chrdev); EXPORT_SYMBOL(directly_mappable_cdev_bdi); |