diff options
Diffstat (limited to 'drivers/edac/e752x_edac.c')
-rw-r--r-- | drivers/edac/e752x_edac.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/edac/e752x_edac.c b/drivers/edac/e752x_edac.c index 24446542d8d6..c86db23d3af3 100644 --- a/drivers/edac/e752x_edac.c +++ b/drivers/edac/e752x_edac.c | |||
@@ -976,10 +976,7 @@ static void __devexit e752x_remove_one(struct pci_dev *pdev) | |||
976 | 976 | ||
977 | debugf0("%s()\n", __func__); | 977 | debugf0("%s()\n", __func__); |
978 | 978 | ||
979 | if ((mci = edac_mc_find_mci_by_pdev(pdev)) == NULL) | 979 | if ((mci = edac_mc_del_mc(pdev)) == NULL) |
980 | return; | ||
981 | |||
982 | if (edac_mc_del_mc(mci)) | ||
983 | return; | 980 | return; |
984 | 981 | ||
985 | pvt = (struct e752x_pvt *) mci->pvt_info; | 982 | pvt = (struct e752x_pvt *) mci->pvt_info; |