diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-12-20 11:13:05 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 23:40:40 -0500 |
commit | c10997f6575f476ff38442fa18fd4a0d80345f9d (patch) | |
tree | 9b2bb7e647bd39fb80f23d7a6b34bf2587d660a7 /drivers/pci/hotplug | |
parent | 38a382ae5dd4f4d04e3046816b0a41836094e538 (diff) |
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>
Diffstat (limited to 'drivers/pci/hotplug')
-rw-r--r-- | drivers/pci/hotplug/pci_hotplug_core.c | 2 | ||||
-rw-r--r-- | drivers/pci/hotplug/rpadlpar_sysfs.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/pci_hotplug_core.c b/drivers/pci/hotplug/pci_hotplug_core.c index 3606d5b52a70..47bb0e1ff3fa 100644 --- a/drivers/pci/hotplug/pci_hotplug_core.c +++ b/drivers/pci/hotplug/pci_hotplug_core.c | |||
@@ -671,7 +671,7 @@ int pci_hp_deregister (struct hotplug_slot *slot) | |||
671 | 671 | ||
672 | fs_remove_slot (slot); | 672 | fs_remove_slot (slot); |
673 | dbg ("Removed slot %s from the list\n", slot->name); | 673 | dbg ("Removed slot %s from the list\n", slot->name); |
674 | kobject_unregister(&slot->kobj); | 674 | kobject_put(&slot->kobj); |
675 | return 0; | 675 | return 0; |
676 | } | 676 | } |
677 | 677 | ||
diff --git a/drivers/pci/hotplug/rpadlpar_sysfs.c b/drivers/pci/hotplug/rpadlpar_sysfs.c index 9cde367915b6..e32148a8fa12 100644 --- a/drivers/pci/hotplug/rpadlpar_sysfs.c +++ b/drivers/pci/hotplug/rpadlpar_sysfs.c | |||
@@ -114,12 +114,12 @@ int dlpar_sysfs_init(void) | |||
114 | 114 | ||
115 | error = sysfs_create_group(dlpar_kobj, &dlpar_attr_group); | 115 | error = sysfs_create_group(dlpar_kobj, &dlpar_attr_group); |
116 | if (error) | 116 | if (error) |
117 | kobject_unregister(dlpar_kobj); | 117 | kobject_put(dlpar_kobj); |
118 | return error; | 118 | return error; |
119 | } | 119 | } |
120 | 120 | ||
121 | void dlpar_sysfs_exit(void) | 121 | void dlpar_sysfs_exit(void) |
122 | { | 122 | { |
123 | sysfs_remove_group(dlpar_kobj, &dlpar_attr_group); | 123 | sysfs_remove_group(dlpar_kobj, &dlpar_attr_group); |
124 | kobject_unregister(dlpar_kobj); | 124 | kobject_put(dlpar_kobj); |
125 | } | 125 | } |