aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/i82875p_edac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/edac/i82875p_edac.c')
-rw-r--r--drivers/edac/i82875p_edac.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/edac/i82875p_edac.c b/drivers/edac/i82875p_edac.c
index 40ba2be6169a..aad1900a4689 100644
--- a/drivers/edac/i82875p_edac.c
+++ b/drivers/edac/i82875p_edac.c
@@ -452,7 +452,7 @@ static void __devexit i82875p_remove_one(struct pci_dev *pdev)
452 452
453 debugf0("%s()\n", __func__); 453 debugf0("%s()\n", __func__);
454 454
455 if ((mci = edac_mc_find_mci_by_pdev(pdev)) == NULL) 455 if ((mci = edac_mc_del_mc(pdev)) == NULL)
456 return; 456 return;
457 457
458 pvt = (struct i82875p_pvt *) mci->pvt_info; 458 pvt = (struct i82875p_pvt *) mci->pvt_info;
@@ -467,9 +467,6 @@ static void __devexit i82875p_remove_one(struct pci_dev *pdev)
467 pci_dev_put(pvt->ovrfl_pdev); 467 pci_dev_put(pvt->ovrfl_pdev);
468 } 468 }
469 469
470 if (edac_mc_del_mc(mci))
471 return;
472
473 edac_mc_free(mci); 470 edac_mc_free(mci);
474} 471}
475 472