summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-12-04 05:31:08 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2008-01-25 04:40:09 (GMT)
commit18041f4775688af073d9b3ab0ffc262c1847e60b (patch)
treede6bdbd43525340c618bcfac96163ad441b3c446 /lib
parent663a47430b361f863b515752a97166a7a4b92d35 (diff)
downloadlinux-fsl-qoriq-18041f4775688af073d9b3ab0ffc262c1847e60b.tar.xz
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/kobject.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/kobject.c b/lib/kobject.c
index 4a310e5..a152036 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -436,12 +436,11 @@ struct kobject * kobject_get(struct kobject * kobj)
return kobj;
}
-/**
- * kobject_cleanup - free kobject resources.
- * @kobj: object.
+/*
+ * kobject_cleanup - free kobject resources.
+ * @kobj: object to cleanup
*/
-
-void kobject_cleanup(struct kobject * kobj)
+static void kobject_cleanup(struct kobject *kobj)
{
struct kobj_type * t = get_ktype(kobj);
struct kset * s = kobj->kset;