diff options
Diffstat (limited to 'drivers/edac/amd76x_edac.c')
-rw-r--r-- | drivers/edac/amd76x_edac.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/edac/amd76x_edac.c b/drivers/edac/amd76x_edac.c index 7fd6283fe008..303cb500b377 100644 --- a/drivers/edac/amd76x_edac.c +++ b/drivers/edac/amd76x_edac.c | |||
@@ -257,7 +257,10 @@ static int amd76x_probe1(struct pci_dev *pdev, int dev_idx) | |||
257 | 257 | ||
258 | amd76x_get_error_info(mci, &discard); /* clear counters */ | 258 | amd76x_get_error_info(mci, &discard); /* clear counters */ |
259 | 259 | ||
260 | if (edac_mc_add_mc(mci)) { | 260 | /* Here we assume that we will never see multiple instances of this |
261 | * type of memory controller. The ID is therefore hardcoded to 0. | ||
262 | */ | ||
263 | if (edac_mc_add_mc(mci,0)) { | ||
261 | debugf3("%s(): failed edac_mc_add_mc()\n", __func__); | 264 | debugf3("%s(): failed edac_mc_add_mc()\n", __func__); |
262 | goto fail; | 265 | goto fail; |
263 | } | 266 | } |