aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/e7xxx_edac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/edac/e7xxx_edac.c')
-rw-r--r--drivers/edac/e7xxx_edac.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/edac/e7xxx_edac.c b/drivers/edac/e7xxx_edac.c
index d601d53b9920..1e282c843e77 100644
--- a/drivers/edac/e7xxx_edac.c
+++ b/drivers/edac/e7xxx_edac.c
@@ -463,7 +463,10 @@ static int e7xxx_probe1(struct pci_dev *pdev, int dev_idx)
463 /* clear any pending errors, or initial state bits */ 463 /* clear any pending errors, or initial state bits */
464 e7xxx_get_error_info(mci, &discard); 464 e7xxx_get_error_info(mci, &discard);
465 465
466 if (edac_mc_add_mc(mci) != 0) { 466 /* Here we assume that we will never see multiple instances of this
467 * type of memory controller. The ID is therefore hardcoded to 0.
468 */
469 if (edac_mc_add_mc(mci,0)) {
467 debugf3("%s(): failed edac_mc_add_mc()\n", __func__); 470 debugf3("%s(): failed edac_mc_add_mc()\n", __func__);
468 goto fail; 471 goto fail;
469 } 472 }