diff options
Diffstat (limited to 'drivers/edac/e7xxx_edac.c')
-rw-r--r-- | drivers/edac/e7xxx_edac.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/edac/e7xxx_edac.c b/drivers/edac/e7xxx_edac.c index 8b0da35ae47c..9b59c661f45e 100644 --- a/drivers/edac/e7xxx_edac.c +++ b/drivers/edac/e7xxx_edac.c | |||
@@ -510,12 +510,12 @@ static void __devexit e7xxx_remove_one(struct pci_dev *pdev) | |||
510 | 510 | ||
511 | debugf0("%s()\n", __func__); | 511 | debugf0("%s()\n", __func__); |
512 | 512 | ||
513 | if (((mci = edac_mc_find_mci_by_pdev(pdev)) != 0) && | 513 | if ((mci = edac_mc_del_mc(pdev)) == NULL) |
514 | !edac_mc_del_mc(mci)) { | 514 | return; |
515 | pvt = (struct e7xxx_pvt *) mci->pvt_info; | 515 | |
516 | pci_dev_put(pvt->bridge_ck); | 516 | pvt = (struct e7xxx_pvt *) mci->pvt_info; |
517 | edac_mc_free(mci); | 517 | pci_dev_put(pvt->bridge_ck); |
518 | } | 518 | edac_mc_free(mci); |
519 | } | 519 | } |
520 | 520 | ||
521 | 521 | ||