Kobject: convert fs/* from 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>
This commit is contained in:
Greg Kroah-Hartman
2007-12-20 08:13:05 -08:00
parent c10997f657
commit 197b12d679
8 changed files with 18 additions and 18 deletions

View File

@ -767,7 +767,7 @@ static int do_sysfs_registration(void)
if (rc) {
printk(KERN_ERR
"Unable to create ecryptfs version attributes\n");
kobject_unregister(ecryptfs_kobj);
kobject_put(ecryptfs_kobj);
}
out:
return rc;
@ -776,7 +776,7 @@ out:
static void do_sysfs_unregistration(void)
{
sysfs_remove_group(ecryptfs_kobj, &attr_group);
kobject_unregister(ecryptfs_kobj);
kobject_put(ecryptfs_kobj);
}
static int __init ecryptfs_init(void)