diff options
Diffstat (limited to 'drivers/edac/x38_edac.c')
-rw-r--r-- | drivers/edac/x38_edac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/x38_edac.c b/drivers/edac/x38_edac.c index bc7f880a4eed..e3247997aa00 100644 --- a/drivers/edac/x38_edac.c +++ b/drivers/edac/x38_edac.c | |||
@@ -373,10 +373,10 @@ static int x38_probe1(struct pci_dev *pdev, int dev_idx) | |||
373 | if (nr_pages == 0) | 373 | if (nr_pages == 0) |
374 | continue; | 374 | continue; |
375 | 375 | ||
376 | csrow->nr_pages = nr_pages; | ||
377 | |||
378 | for (j = 0; j < x38_channel_num; j++) { | 376 | for (j = 0; j < x38_channel_num; j++) { |
379 | struct dimm_info *dimm = csrow->channels[j].dimm; | 377 | struct dimm_info *dimm = csrow->channels[j].dimm; |
378 | |||
379 | dimm->nr_pages = nr_pages / x38_channel_num; | ||
380 | dimm->grain = nr_pages << PAGE_SHIFT; | 380 | dimm->grain = nr_pages << PAGE_SHIFT; |
381 | dimm->mtype = MEM_DDR2; | 381 | dimm->mtype = MEM_DDR2; |
382 | dimm->dtype = DEV_UNKNOWN; | 382 | dimm->dtype = DEV_UNKNOWN; |