diff options
Diffstat (limited to 'drivers/edac/i3000_edac.c')
-rw-r--r-- | drivers/edac/i3000_edac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/i3000_edac.c b/drivers/edac/i3000_edac.c index 02cd25a15fd4..0ecfdc432f87 100644 --- a/drivers/edac/i3000_edac.c +++ b/drivers/edac/i3000_edac.c | |||
@@ -309,7 +309,7 @@ static int i3000_probe1(struct pci_dev *pdev, int dev_idx) | |||
309 | */ | 309 | */ |
310 | interleaved = i3000_is_interleaved(c0dra, c1dra, c0drb, c1drb); | 310 | interleaved = i3000_is_interleaved(c0dra, c1dra, c0drb, c1drb); |
311 | nr_channels = interleaved ? 2 : 1; | 311 | nr_channels = interleaved ? 2 : 1; |
312 | mci = edac_mc_alloc(0, I3000_RANKS / nr_channels, nr_channels); | 312 | mci = edac_mc_alloc(0, I3000_RANKS / nr_channels, nr_channels, 0); |
313 | if (!mci) | 313 | if (!mci) |
314 | return -ENOMEM; | 314 | return -ENOMEM; |
315 | 315 | ||
@@ -370,7 +370,7 @@ static int i3000_probe1(struct pci_dev *pdev, int dev_idx) | |||
370 | I3000_ERRSTS_BITS); | 370 | I3000_ERRSTS_BITS); |
371 | 371 | ||
372 | rc = -ENODEV; | 372 | rc = -ENODEV; |
373 | if (edac_mc_add_mc(mci, 0)) { | 373 | if (edac_mc_add_mc(mci)) { |
374 | debugf3("MC: %s(): failed edac_mc_add_mc()\n", __func__); | 374 | debugf3("MC: %s(): failed edac_mc_add_mc()\n", __func__); |
375 | goto fail; | 375 | goto fail; |
376 | } | 376 | } |