diff options
Diffstat (limited to 'drivers/edac/edac_pci_sysfs.c')
-rw-r--r-- | drivers/edac/edac_pci_sysfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/edac/edac_pci_sysfs.c b/drivers/edac/edac_pci_sysfs.c index 834eaa9d6148..5b075da99145 100644 --- a/drivers/edac/edac_pci_sysfs.c +++ b/drivers/edac/edac_pci_sysfs.c | |||
@@ -205,7 +205,7 @@ void edac_pci_unregister_sysfs_instance_kobj(struct edac_pci_ctl_info *pci) | |||
205 | * function release the main reference count and then | 205 | * function release the main reference count and then |
206 | * kfree the memory | 206 | * kfree the memory |
207 | */ | 207 | */ |
208 | kobject_unregister(&pci->kobj); | 208 | kobject_put(&pci->kobj); |
209 | } | 209 | } |
210 | 210 | ||
211 | /***************************** EDAC PCI sysfs root **********************/ | 211 | /***************************** EDAC PCI sysfs root **********************/ |
@@ -411,9 +411,9 @@ static void edac_pci_main_kobj_teardown(void) | |||
411 | * main kobj | 411 | * main kobj |
412 | */ | 412 | */ |
413 | if (atomic_dec_return(&edac_pci_sysfs_refcount) == 0) { | 413 | if (atomic_dec_return(&edac_pci_sysfs_refcount) == 0) { |
414 | debugf0("%s() called kobject_unregister on main kobj\n", | 414 | debugf0("%s() called kobject_put on main kobj\n", |
415 | __func__); | 415 | __func__); |
416 | kobject_unregister(&edac_pci_top_main_kobj); | 416 | kobject_put(&edac_pci_top_main_kobj); |
417 | } | 417 | } |
418 | } | 418 | } |
419 | 419 | ||