aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorArvind R <arvino55@gmail.com>2011-01-25 12:08:38 -0500
committerJiri Kosina <jkosina@suse.cz>2011-02-17 10:46:22 -0500
commitda95b3d21f41da39ee716e0db781de4b9ffbb233 (patch)
tree24aea9611d95dd0f5bc8747f171ee42231e39bcc /drivers/edac
parent7ba9957581a889ce19919a0cdc1cef9f04e5e3a8 (diff)
edac: correct i82975x mci initialisation
corrected mtype, and added dev_name,scrubmode initialisers in i82975x struct mem_ctl initialisation Signed-off-by: Arvind R. <arvino55@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/i82975x_edac.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/edac/i82975x_edac.c b/drivers/edac/i82975x_edac.c
index 8ec4e9eef72f..37849625647f 100644
--- a/drivers/edac/i82975x_edac.c
+++ b/drivers/edac/i82975x_edac.c
@@ -511,18 +511,20 @@ static int i82975x_probe1(struct pci_dev *pdev, int dev_idx)
511 511
512 debugf3("%s(): init mci\n", __func__); 512 debugf3("%s(): init mci\n", __func__);
513 mci->dev = &pdev->dev; 513 mci->dev = &pdev->dev;
514 mci->mtype_cap = MEM_FLAG_DDR; 514 mci->mtype_cap = MEM_FLAG_DDR2;
515 mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; 515 mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED;
516 mci->edac_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; 516 mci->edac_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED;
517 mci->mod_name = EDAC_MOD_STR; 517 mci->mod_name = EDAC_MOD_STR;
518 mci->mod_ver = I82975X_REVISION; 518 mci->mod_ver = I82975X_REVISION;
519 mci->ctl_name = i82975x_devs[dev_idx].ctl_name; 519 mci->ctl_name = i82975x_devs[dev_idx].ctl_name;
520 mci->dev_name = pci_name(pdev);
520 mci->edac_check = i82975x_check; 521 mci->edac_check = i82975x_check;
521 mci->ctl_page_to_phys = NULL; 522 mci->ctl_page_to_phys = NULL;
522 debugf3("%s(): init pvt\n", __func__); 523 debugf3("%s(): init pvt\n", __func__);
523 pvt = (struct i82975x_pvt *) mci->pvt_info; 524 pvt = (struct i82975x_pvt *) mci->pvt_info;
524 pvt->mch_window = mch_window; 525 pvt->mch_window = mch_window;
525 i82975x_init_csrows(mci, pdev, mch_window); 526 i82975x_init_csrows(mci, pdev, mch_window);
527 mci->scrub_mode = SCRUB_HW_SRC;
526 i82975x_get_error_info(mci, &discard); /* clear counters */ 528 i82975x_get_error_info(mci, &discard); /* clear counters */
527 529
528 /* finalize this instance of memory controller with edac core */ 530 /* finalize this instance of memory controller with edac core */