aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-12-20 11:13:05 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-01-24 23:40:40 -0500
commit78a2d906b40fe530ea800c1e873bfe8f02326f1e (patch)
treeebeef35150816fa807f71e596a9aaf711ad10a90 /lib
parent197b12d6796a3bca187f22a8978a33d51e2bcd79 (diff)
Kobject: convert remaining kobject_unregister() to kobject_put()
There is no need for kobject_unregister() anymore, thanks to Kay's kobject cleanup changes, so replace all instances of it with kobject_put(). Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/kobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kobject.c b/lib/kobject.c
index 4fce5ca42c2e..462946ee3e64 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -664,7 +664,7 @@ struct kobject *kobject_create(void)
664 * 664 *
665 * This function creates a kset structure dynamically and registers it 665 * This function creates a kset structure dynamically and registers it
666 * with sysfs. When you are finished with this structure, call 666 * with sysfs. When you are finished with this structure, call
667 * kobject_unregister() and the structure will be dynamically freed when 667 * kobject_put() and the structure will be dynamically freed when
668 * it is no longer being used. 668 * it is no longer being used.
669 * 669 *
670 * If the kobject was not able to be created, NULL will be returned. 670 * If the kobject was not able to be created, NULL will be returned.
@@ -761,7 +761,7 @@ void kset_unregister(struct kset * k)
761{ 761{
762 if (!k) 762 if (!k)
763 return; 763 return;
764 kobject_unregister(&k->kobj); 764 kobject_put(&k->kobj);
765} 765}
766 766
767 767