diff options
Diffstat (limited to 'drivers/edac/i82875p_edac.c')
-rw-r--r-- | drivers/edac/i82875p_edac.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/edac/i82875p_edac.c b/drivers/edac/i82875p_edac.c index 3f509a7ea02a..2be18ca96408 100644 --- a/drivers/edac/i82875p_edac.c +++ b/drivers/edac/i82875p_edac.c | |||
@@ -390,7 +390,10 @@ static int i82875p_probe1(struct pci_dev *pdev, int dev_idx) | |||
390 | 390 | ||
391 | i82875p_get_error_info(mci, &discard); /* clear counters */ | 391 | i82875p_get_error_info(mci, &discard); /* clear counters */ |
392 | 392 | ||
393 | if (edac_mc_add_mc(mci)) { | 393 | /* Here we assume that we will never see multiple instances of this |
394 | * type of memory controller. The ID is therefore hardcoded to 0. | ||
395 | */ | ||
396 | if (edac_mc_add_mc(mci,0)) { | ||
394 | debugf3("%s(): failed edac_mc_add_mc()\n", __func__); | 397 | debugf3("%s(): failed edac_mc_add_mc()\n", __func__); |
395 | goto fail3; | 398 | goto fail3; |
396 | } | 399 | } |