diff options
Diffstat (limited to 'drivers/edac/e7xxx_edac.c')
-rw-r--r-- | drivers/edac/e7xxx_edac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/e7xxx_edac.c b/drivers/edac/e7xxx_edac.c index bab31aab983d..c6c0ebaca371 100644 --- a/drivers/edac/e7xxx_edac.c +++ b/drivers/edac/e7xxx_edac.c | |||
@@ -378,7 +378,7 @@ static void e7xxx_init_csrows(struct mem_ctl_info *mci, struct pci_dev *pdev, | |||
378 | for (index = 0; index < mci->nr_csrows; index++) { | 378 | for (index = 0; index < mci->nr_csrows; index++) { |
379 | /* mem_dev 0=x8, 1=x4 */ | 379 | /* mem_dev 0=x8, 1=x4 */ |
380 | mem_dev = (dra >> (index * 4 + 3)) & 0x1; | 380 | mem_dev = (dra >> (index * 4 + 3)) & 0x1; |
381 | csrow = &mci->csrows[index]; | 381 | csrow = mci->csrows[index]; |
382 | 382 | ||
383 | pci_read_config_byte(pdev, E7XXX_DRB + index, &value); | 383 | pci_read_config_byte(pdev, E7XXX_DRB + index, &value); |
384 | /* convert a 64 or 32 MiB DRB to a page size. */ | 384 | /* convert a 64 or 32 MiB DRB to a page size. */ |
@@ -409,7 +409,7 @@ static void e7xxx_init_csrows(struct mem_ctl_info *mci, struct pci_dev *pdev, | |||
409 | edac_mode = EDAC_NONE; | 409 | edac_mode = EDAC_NONE; |
410 | 410 | ||
411 | for (j = 0; j < drc_chan + 1; j++) { | 411 | for (j = 0; j < drc_chan + 1; j++) { |
412 | dimm = csrow->channels[j].dimm; | 412 | dimm = csrow->channels[j]->dimm; |
413 | 413 | ||
414 | dimm->nr_pages = nr_pages / (drc_chan + 1); | 414 | dimm->nr_pages = nr_pages / (drc_chan + 1); |
415 | dimm->grain = 1 << 12; /* 4KiB - resolution of CELOG */ | 415 | dimm->grain = 1 << 12; /* 4KiB - resolution of CELOG */ |