aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/edac/edac_mc.c2
-rw-r--r--drivers/edac/edac_mc_sysfs.c2
-rw-r--r--drivers/edac/i7core_edac.c1
3 files changed, 5 insertions, 0 deletions
diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c
index b10b45cc7870..889ce7566b56 100644
--- a/drivers/edac/edac_mc.c
+++ b/drivers/edac/edac_mc.c
@@ -235,6 +235,8 @@ EXPORT_SYMBOL_GPL(edac_mc_alloc);
235 */ 235 */
236void edac_mc_free(struct mem_ctl_info *mci) 236void edac_mc_free(struct mem_ctl_info *mci)
237{ 237{
238 debugf1("%s()\n", __func__);
239
238 edac_mc_unregister_sysfs_main_kobj(mci); 240 edac_mc_unregister_sysfs_main_kobj(mci);
239} 241}
240EXPORT_SYMBOL_GPL(edac_mc_free); 242EXPORT_SYMBOL_GPL(edac_mc_free);
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c
index 7024b873a3b9..ddd765253630 100644
--- a/drivers/edac/edac_mc_sysfs.c
+++ b/drivers/edac/edac_mc_sysfs.c
@@ -712,6 +712,8 @@ fail_out:
712 */ 712 */
713void edac_mc_unregister_sysfs_main_kobj(struct mem_ctl_info *mci) 713void edac_mc_unregister_sysfs_main_kobj(struct mem_ctl_info *mci)
714{ 714{
715 debugf1("%s()\n", __func__);
716
715 /* delete the kobj from the mc_kset */ 717 /* delete the kobj from the mc_kset */
716 kobject_put(&mci->edac_mci_kobj); 718 kobject_put(&mci->edac_mci_kobj);
717} 719}
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c
index 11c61b4d8149..b0559973c66f 100644
--- a/drivers/edac/i7core_edac.c
+++ b/drivers/edac/i7core_edac.c
@@ -2086,6 +2086,7 @@ static void __devexit i7core_remove(struct pci_dev *pdev)
2086 edac_mc_del_mc(&i7core_dev->pdev[0]->dev); 2086 edac_mc_del_mc(&i7core_dev->pdev[0]->dev);
2087 2087
2088 /* Free data */ 2088 /* Free data */
2089 debugf1("%s: free structs\n");
2089 kfree(mci->ctl_name); 2090 kfree(mci->ctl_name);
2090 edac_mc_free(mci); 2091 edac_mc_free(mci);
2091 2092