diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-12-04 00:31:08 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 23:40:09 -0500 |
commit | 18041f4775688af073d9b3ab0ffc262c1847e60b (patch) | |
tree | de6bdbd43525340c618bcfac96163ad441b3c446 | |
parent | 663a47430b361f863b515752a97166a7a4b92d35 (diff) |
kobject: make kobject_cleanup be static
No one except the kobject core calls it so make the function static.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | include/linux/kobject.h | 2 | ||||
-rw-r--r-- | lib/kobject.c | 9 |
2 files changed, 4 insertions, 7 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h index 4a0d27f475d7..2d19a079ee79 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h | |||
@@ -79,8 +79,6 @@ static inline const char * kobject_name(const struct kobject * kobj) | |||
79 | } | 79 | } |
80 | 80 | ||
81 | extern void kobject_init(struct kobject *); | 81 | extern void kobject_init(struct kobject *); |
82 | extern void kobject_cleanup(struct kobject *); | ||
83 | |||
84 | extern int __must_check kobject_add(struct kobject *); | 82 | extern int __must_check kobject_add(struct kobject *); |
85 | extern void kobject_del(struct kobject *); | 83 | extern void kobject_del(struct kobject *); |
86 | 84 | ||
diff --git a/lib/kobject.c b/lib/kobject.c index 4a310e55a886..a152036db006 100644 --- a/lib/kobject.c +++ b/lib/kobject.c | |||
@@ -436,12 +436,11 @@ struct kobject * kobject_get(struct kobject * kobj) | |||
436 | return kobj; | 436 | return kobj; |
437 | } | 437 | } |
438 | 438 | ||
439 | /** | 439 | /* |
440 | * kobject_cleanup - free kobject resources. | 440 | * kobject_cleanup - free kobject resources. |
441 | * @kobj: object. | 441 | * @kobj: object to cleanup |
442 | */ | 442 | */ |
443 | 443 | static void kobject_cleanup(struct kobject *kobj) | |
444 | void kobject_cleanup(struct kobject * kobj) | ||
445 | { | 444 | { |
446 | struct kobj_type * t = get_ktype(kobj); | 445 | struct kobj_type * t = get_ktype(kobj); |
447 | struct kset * s = kobj->kset; | 446 | struct kset * s = kobj->kset; |