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:
@@ -671,7 +671,7 @@ int pci_hp_deregister (struct hotplug_slot *slot)
|
||||
|
||||
fs_remove_slot (slot);
|
||||
dbg ("Removed slot %s from the list\n", slot->name);
|
||||
kobject_unregister(&slot->kobj);
|
||||
kobject_put(&slot->kobj);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user