mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
c10997f657
commit
197b12d679
8 changed files with 18 additions and 18 deletions
|
|
@ -150,7 +150,7 @@ static int __init configfs_init(void)
|
|||
err = register_filesystem(&configfs_fs_type);
|
||||
if (err) {
|
||||
printk(KERN_ERR "configfs: Unable to register filesystem!\n");
|
||||
kobject_unregister(config_kobj);
|
||||
kobject_put(config_kobj);
|
||||
kmem_cache_destroy(configfs_dir_cachep);
|
||||
configfs_dir_cachep = NULL;
|
||||
goto out;
|
||||
|
|
@ -159,7 +159,7 @@ static int __init configfs_init(void)
|
|||
err = configfs_inode_init();
|
||||
if (err) {
|
||||
unregister_filesystem(&configfs_fs_type);
|
||||
kobject_unregister(config_kobj);
|
||||
kobject_put(config_kobj);
|
||||
kmem_cache_destroy(configfs_dir_cachep);
|
||||
configfs_dir_cachep = NULL;
|
||||
}
|
||||
|
|
@ -170,7 +170,7 @@ out:
|
|||
static void __exit configfs_exit(void)
|
||||
{
|
||||
unregister_filesystem(&configfs_fs_type);
|
||||
kobject_unregister(config_kobj);
|
||||
kobject_put(config_kobj);
|
||||
kmem_cache_destroy(configfs_dir_cachep);
|
||||
configfs_dir_cachep = NULL;
|
||||
configfs_inode_exit();
|
||||
|
|
|
|||
Loading…
Reference in a new issue