[PATCH] EDAC: protect memory controller list
[deliverable/linux.git] / drivers / edac / e752x_edac.c
index 24446542d8d61970a87463574aa1f7a1ed2e85f9..c86db23d3af3bfb782f24085892870a3a5459188 100644 (file)
@@ -976,10 +976,7 @@ static void __devexit e752x_remove_one(struct pci_dev *pdev)
 
        debugf0("%s()\n", __func__);
 
-       if ((mci = edac_mc_find_mci_by_pdev(pdev)) == NULL)
-               return;
-
-       if (edac_mc_del_mc(mci))
+       if ((mci = edac_mc_del_mc(pdev)) == NULL)
                return;
 
        pvt = (struct e752x_pvt *) mci->pvt_info;
This page took 0.043392 seconds and 5 git commands to generate.