Kobject: convert drivers/* 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:
@@ -114,12 +114,12 @@ int dlpar_sysfs_init(void)
|
||||
|
||||
error = sysfs_create_group(dlpar_kobj, &dlpar_attr_group);
|
||||
if (error)
|
||||
kobject_unregister(dlpar_kobj);
|
||||
kobject_put(dlpar_kobj);
|
||||
return error;
|
||||
}
|
||||
|
||||
void dlpar_sysfs_exit(void)
|
||||
{
|
||||
sysfs_remove_group(dlpar_kobj, &dlpar_attr_group);
|
||||
kobject_unregister(dlpar_kobj);
|
||||
kobject_put(dlpar_kobj);
|
||||
}
|
||||
|
Reference in New Issue
Block a user