aboutsummaryrefslogtreecommitdiffstats
path: root/fs/debugfs/inode.c
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
commit197b12d6796a3bca187f22a8978a33d51e2bcd79 (patch)
tree706ff3454f03d4aa8ca4d76010479d7f9d2b36f4 /fs/debugfs/inode.c
parentc10997f6575f476ff38442fa18fd4a0d80345f9d (diff)
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>
Diffstat (limited to 'fs/debugfs/inode.c')
-rw-r--r--fs/debugfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index 97f6381c36c2..d26e2826ba5b 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -438,7 +438,7 @@ static int __init debugfs_init(void)
438 438
439 retval = register_filesystem(&debug_fs_type); 439 retval = register_filesystem(&debug_fs_type);
440 if (retval) 440 if (retval)
441 kobject_unregister(debug_kobj); 441 kobject_put(debug_kobj);
442 return retval; 442 return retval;
443} 443}
444 444
@@ -446,7 +446,7 @@ static void __exit debugfs_exit(void)
446{ 446{
447 simple_release_fs(&debugfs_mount, &debugfs_mount_count); 447 simple_release_fs(&debugfs_mount, &debugfs_mount_count);
448 unregister_filesystem(&debug_fs_type); 448 unregister_filesystem(&debug_fs_type);
449 kobject_unregister(debug_kobj); 449 kobject_put(debug_kobj);
450} 450}
451 451
452core_initcall(debugfs_init); 452core_initcall(debugfs_init);