aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/amd76x_edac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/edac/amd76x_edac.c')
-rw-r--r--drivers/edac/amd76x_edac.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/edac/amd76x_edac.c b/drivers/edac/amd76x_edac.c
index 821c252d414c..87bd8b4d561f 100644
--- a/drivers/edac/amd76x_edac.c
+++ b/drivers/edac/amd76x_edac.c
@@ -314,10 +314,9 @@ static void __devexit amd76x_remove_one(struct pci_dev *pdev)
314 314
315 debugf0("%s()\n", __func__); 315 debugf0("%s()\n", __func__);
316 316
317 if ((mci = edac_mc_find_mci_by_pdev(pdev)) == NULL) 317 if ((mci = edac_mc_del_mc(pdev)) == NULL)
318 return;
319 if (edac_mc_del_mc(mci))
320 return; 318 return;
319
321 edac_mc_free(mci); 320 edac_mc_free(mci);
322} 321}
323 322