diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-04-22 06:14:44 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-04-27 16:08:56 -0400 |
commit | 5b3ef14e3e9d745a512d65fcb4ef9be541226d80 (patch) | |
tree | 6b607eb4da11b5a18125ede156825550661e29d4 /lib | |
parent | bde11d794206ae8d72defd0e8a481181200f7dc4 (diff) |
[PATCH] Kobject: possible cleanups
This patch contains the following possible cleanups:
- #if 0 the following unused global function:
- subsys_remove_file()
- remove the following unused EXPORT_SYMBOL's:
- kset_find_obj
- subsystem_init
- remove the following unused EXPORT_SYMBOL_GPL:
- kobject_add_dir
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kobject.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/kobject.c b/lib/kobject.c index 01d957513940..b46350c27837 100644 --- a/lib/kobject.c +++ b/lib/kobject.c | |||
@@ -422,7 +422,6 @@ struct kobject *kobject_add_dir(struct kobject *parent, const char *name) | |||
422 | 422 | ||
423 | return k; | 423 | return k; |
424 | } | 424 | } |
425 | EXPORT_SYMBOL_GPL(kobject_add_dir); | ||
426 | 425 | ||
427 | /** | 426 | /** |
428 | * kset_init - initialize a kset for use | 427 | * kset_init - initialize a kset for use |
@@ -569,7 +568,7 @@ int subsys_create_file(struct subsystem * s, struct subsys_attribute * a) | |||
569 | * @s: subsystem. | 568 | * @s: subsystem. |
570 | * @a: attribute desciptor. | 569 | * @a: attribute desciptor. |
571 | */ | 570 | */ |
572 | 571 | #if 0 | |
573 | void subsys_remove_file(struct subsystem * s, struct subsys_attribute * a) | 572 | void subsys_remove_file(struct subsystem * s, struct subsys_attribute * a) |
574 | { | 573 | { |
575 | if (subsys_get(s)) { | 574 | if (subsys_get(s)) { |
@@ -577,6 +576,7 @@ void subsys_remove_file(struct subsystem * s, struct subsys_attribute * a) | |||
577 | subsys_put(s); | 576 | subsys_put(s); |
578 | } | 577 | } |
579 | } | 578 | } |
579 | #endif /* 0 */ | ||
580 | 580 | ||
581 | EXPORT_SYMBOL(kobject_init); | 581 | EXPORT_SYMBOL(kobject_init); |
582 | EXPORT_SYMBOL(kobject_register); | 582 | EXPORT_SYMBOL(kobject_register); |
@@ -588,10 +588,7 @@ EXPORT_SYMBOL(kobject_del); | |||
588 | 588 | ||
589 | EXPORT_SYMBOL(kset_register); | 589 | EXPORT_SYMBOL(kset_register); |
590 | EXPORT_SYMBOL(kset_unregister); | 590 | EXPORT_SYMBOL(kset_unregister); |
591 | EXPORT_SYMBOL(kset_find_obj); | ||
592 | 591 | ||
593 | EXPORT_SYMBOL(subsystem_init); | ||
594 | EXPORT_SYMBOL(subsystem_register); | 592 | EXPORT_SYMBOL(subsystem_register); |
595 | EXPORT_SYMBOL(subsystem_unregister); | 593 | EXPORT_SYMBOL(subsystem_unregister); |
596 | EXPORT_SYMBOL(subsys_create_file); | 594 | EXPORT_SYMBOL(subsys_create_file); |
597 | EXPORT_SYMBOL(subsys_remove_file); | ||