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

@@ -438,7 +438,7 @@ static int __init debugfs_init(void)
retval = register_filesystem(&debug_fs_type);
if (retval)
kobject_unregister(debug_kobj);
kobject_put(debug_kobj);
return retval;
}
@@ -446,7 +446,7 @@ static void __exit debugfs_exit(void)
{
simple_release_fs(&debugfs_mount, &debugfs_mount_count);
unregister_filesystem(&debug_fs_type);
kobject_unregister(debug_kobj);
kobject_put(debug_kobj);
}
core_initcall(debugfs_init);