diff options
author | Namhyung Kim <namhyung@gmail.com> | 2011-01-12 20:00:37 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 11:03:17 -0500 |
commit | e6d7202b66d99bf514c8e901db68386b1fcd6d56 (patch) | |
tree | 2e01041b3173c2d1ce511643c04466c9e1f066db /fs | |
parent | ceff1a770933e2ca2bf995b453dade4ec47a9878 (diff) |
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')
-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 e5b9df993b93..6e99b9ddd4e9 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) | |||
417 | return ret; | 417 | return ret; |
418 | } | 418 | } |
419 | 419 | ||
420 | int cdev_index(struct inode *inode) | ||
421 | { | ||
422 | int idx; | ||
423 | struct kobject *kobj; | ||
424 | |||
425 | kobj = kobj_lookup(cdev_map, inode->i_rdev, &idx); | ||
426 | if (!kobj) | ||
427 | return -1; | ||
428 | kobject_put(kobj); | ||
429 | return idx; | ||
430 | } | ||
431 | |||
432 | void cd_forget(struct inode *inode) | 420 | void cd_forget(struct inode *inode) |
433 | { | 421 | { |
434 | spin_lock(&cdev_lock); | 422 | spin_lock(&cdev_lock); |
@@ -582,7 +570,6 @@ EXPORT_SYMBOL(cdev_init); | |||
582 | EXPORT_SYMBOL(cdev_alloc); | 570 | EXPORT_SYMBOL(cdev_alloc); |
583 | EXPORT_SYMBOL(cdev_del); | 571 | EXPORT_SYMBOL(cdev_del); |
584 | EXPORT_SYMBOL(cdev_add); | 572 | EXPORT_SYMBOL(cdev_add); |
585 | EXPORT_SYMBOL(cdev_index); | ||
586 | EXPORT_SYMBOL(__register_chrdev); | 573 | EXPORT_SYMBOL(__register_chrdev); |
587 | EXPORT_SYMBOL(__unregister_chrdev); | 574 | EXPORT_SYMBOL(__unregister_chrdev); |
588 | EXPORT_SYMBOL(directly_mappable_cdev_bdi); | 575 | EXPORT_SYMBOL(directly_mappable_cdev_bdi); |