diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-03-16 06:44:18 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-11 10:56:06 -0400 |
commit | fd687502dc8037aa5a4b84c570ada971106574ee (patch) | |
tree | 53e7c4141571ff349759614095c12e853492f068 /drivers | |
parent | 53f2d02898755d1b24bde1975e202815d29fdb81 (diff) |
edac: Rename the parent dev to pdev
As EDAC doesn't use struct device itself, it created a parent dev
pointer called as "pdev". Now that we'll be converting it to use
struct device, instead of struct devsys, this needs to be fixed.
No functional changes.
Reviewed-by: Aristeu Rozanski <arozansk@redhat.com>
Acked-by: Chris Metcalf <cmetcalf@tilera.com>
Cc: Doug Thompson <norsk5@yahoo.com>
Cc: Borislav Petkov <borislav.petkov@amd.com>
Cc: Mark Gross <mark.gross@intel.com>
Cc: Jason Uhlenkott <juhlenko@akamai.com>
Cc: Tim Small <tim@buttersideup.com>
Cc: Ranganathan Desikan <ravi@jetztechnologies.com>
Cc: "Arvind R." <arvino55@gmail.com>
Cc: Olof Johansson <olof@lixom.net>
Cc: Egor Martovetsky <egor@pasemi.com>
Cc: Michal Marek <mmarek@suse.cz>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Joe Perches <joe@perches.com>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Hitoshi Mitake <h.mitake@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: "Niklas Söderlund" <niklas.soderlund@ericsson.com>
Cc: Shaohui Xie <Shaohui.Xie@freescale.com>
Cc: Josh Boyer <jwboyer@gmail.com>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
27 files changed, 55 insertions, 55 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 7be9b7288e90..821bc2cdd2de 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c | |||
@@ -2601,7 +2601,7 @@ static int amd64_init_one_instance(struct pci_dev *F2) | |||
2601 | goto err_siblings; | 2601 | goto err_siblings; |
2602 | 2602 | ||
2603 | mci->pvt_info = pvt; | 2603 | mci->pvt_info = pvt; |
2604 | mci->dev = &pvt->F2->dev; | 2604 | mci->pdev = &pvt->F2->dev; |
2605 | 2605 | ||
2606 | setup_mci_misc_attrs(mci, fam_type); | 2606 | setup_mci_misc_attrs(mci, fam_type); |
2607 | 2607 | ||
diff --git a/drivers/edac/amd76x_edac.c b/drivers/edac/amd76x_edac.c index 9774d443fa57..7439786f3bef 100644 --- a/drivers/edac/amd76x_edac.c +++ b/drivers/edac/amd76x_edac.c | |||
@@ -105,7 +105,7 @@ static void amd76x_get_error_info(struct mem_ctl_info *mci, | |||
105 | { | 105 | { |
106 | struct pci_dev *pdev; | 106 | struct pci_dev *pdev; |
107 | 107 | ||
108 | pdev = to_pci_dev(mci->dev); | 108 | pdev = to_pci_dev(mci->pdev); |
109 | pci_read_config_dword(pdev, AMD76X_ECC_MODE_STATUS, | 109 | pci_read_config_dword(pdev, AMD76X_ECC_MODE_STATUS, |
110 | &info->ecc_mode_status); | 110 | &info->ecc_mode_status); |
111 | 111 | ||
@@ -257,7 +257,7 @@ static int amd76x_probe1(struct pci_dev *pdev, int dev_idx) | |||
257 | return -ENOMEM; | 257 | return -ENOMEM; |
258 | 258 | ||
259 | debugf0("%s(): mci = %p\n", __func__, mci); | 259 | debugf0("%s(): mci = %p\n", __func__, mci); |
260 | mci->dev = &pdev->dev; | 260 | mci->pdev = &pdev->dev; |
261 | mci->mtype_cap = MEM_FLAG_RDDR; | 261 | mci->mtype_cap = MEM_FLAG_RDDR; |
262 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_EC | EDAC_FLAG_SECDED; | 262 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_EC | EDAC_FLAG_SECDED; |
263 | mci->edac_cap = ems_mode ? | 263 | mci->edac_cap = ems_mode ? |
diff --git a/drivers/edac/cell_edac.c b/drivers/edac/cell_edac.c index 69ee6aab5c71..2e5b95374dc6 100644 --- a/drivers/edac/cell_edac.c +++ b/drivers/edac/cell_edac.c | |||
@@ -36,7 +36,7 @@ static void cell_edac_count_ce(struct mem_ctl_info *mci, int chan, u64 ar) | |||
36 | struct csrow_info *csrow = &mci->csrows[0]; | 36 | struct csrow_info *csrow = &mci->csrows[0]; |
37 | unsigned long address, pfn, offset, syndrome; | 37 | unsigned long address, pfn, offset, syndrome; |
38 | 38 | ||
39 | dev_dbg(mci->dev, "ECC CE err on node %d, channel %d, ar = 0x%016llx\n", | 39 | dev_dbg(mci->pdev, "ECC CE err on node %d, channel %d, ar = 0x%016llx\n", |
40 | priv->node, chan, ar); | 40 | priv->node, chan, ar); |
41 | 41 | ||
42 | /* Address decoding is likely a bit bogus, to dbl check */ | 42 | /* Address decoding is likely a bit bogus, to dbl check */ |
@@ -59,7 +59,7 @@ static void cell_edac_count_ue(struct mem_ctl_info *mci, int chan, u64 ar) | |||
59 | struct csrow_info *csrow = &mci->csrows[0]; | 59 | struct csrow_info *csrow = &mci->csrows[0]; |
60 | unsigned long address, pfn, offset; | 60 | unsigned long address, pfn, offset; |
61 | 61 | ||
62 | dev_dbg(mci->dev, "ECC UE err on node %d, channel %d, ar = 0x%016llx\n", | 62 | dev_dbg(mci->pdev, "ECC UE err on node %d, channel %d, ar = 0x%016llx\n", |
63 | priv->node, chan, ar); | 63 | priv->node, chan, ar); |
64 | 64 | ||
65 | /* Address decoding is likely a bit bogus, to dbl check */ | 65 | /* Address decoding is likely a bit bogus, to dbl check */ |
@@ -83,7 +83,7 @@ static void cell_edac_check(struct mem_ctl_info *mci) | |||
83 | fir = in_be64(&priv->regs->mic_fir); | 83 | fir = in_be64(&priv->regs->mic_fir); |
84 | #ifdef DEBUG | 84 | #ifdef DEBUG |
85 | if (fir != priv->prev_fir) { | 85 | if (fir != priv->prev_fir) { |
86 | dev_dbg(mci->dev, "fir change : 0x%016lx\n", fir); | 86 | dev_dbg(mci->pdev, "fir change : 0x%016lx\n", fir); |
87 | priv->prev_fir = fir; | 87 | priv->prev_fir = fir; |
88 | } | 88 | } |
89 | #endif | 89 | #endif |
@@ -119,7 +119,7 @@ static void cell_edac_check(struct mem_ctl_info *mci) | |||
119 | mb(); /* sync up */ | 119 | mb(); /* sync up */ |
120 | #ifdef DEBUG | 120 | #ifdef DEBUG |
121 | fir = in_be64(&priv->regs->mic_fir); | 121 | fir = in_be64(&priv->regs->mic_fir); |
122 | dev_dbg(mci->dev, "fir clear : 0x%016lx\n", fir); | 122 | dev_dbg(mci->pdev, "fir clear : 0x%016lx\n", fir); |
123 | #endif | 123 | #endif |
124 | } | 124 | } |
125 | } | 125 | } |
@@ -155,7 +155,7 @@ static void __devinit cell_edac_init_csrows(struct mem_ctl_info *mci) | |||
155 | dimm->edac_mode = EDAC_SECDED; | 155 | dimm->edac_mode = EDAC_SECDED; |
156 | dimm->nr_pages = nr_pages / csrow->nr_channels; | 156 | dimm->nr_pages = nr_pages / csrow->nr_channels; |
157 | } | 157 | } |
158 | dev_dbg(mci->dev, | 158 | dev_dbg(mci->pdev, |
159 | "Initialized on node %d, chanmask=0x%x," | 159 | "Initialized on node %d, chanmask=0x%x," |
160 | " first_page=0x%lx, nr_pages=0x%x\n", | 160 | " first_page=0x%lx, nr_pages=0x%x\n", |
161 | priv->node, priv->chanmask, | 161 | priv->node, priv->chanmask, |
@@ -212,7 +212,7 @@ static int __devinit cell_edac_probe(struct platform_device *pdev) | |||
212 | priv->regs = regs; | 212 | priv->regs = regs; |
213 | priv->node = pdev->id; | 213 | priv->node = pdev->id; |
214 | priv->chanmask = chanmask; | 214 | priv->chanmask = chanmask; |
215 | mci->dev = &pdev->dev; | 215 | mci->pdev = &pdev->dev; |
216 | mci->mtype_cap = MEM_FLAG_XDR; | 216 | mci->mtype_cap = MEM_FLAG_XDR; |
217 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_EC | EDAC_FLAG_SECDED; | 217 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_EC | EDAC_FLAG_SECDED; |
218 | mci->edac_cap = EDAC_FLAG_EC | EDAC_FLAG_SECDED; | 218 | mci->edac_cap = EDAC_FLAG_EC | EDAC_FLAG_SECDED; |
diff --git a/drivers/edac/cpc925_edac.c b/drivers/edac/cpc925_edac.c index e22030a9de66..9488723f8138 100644 --- a/drivers/edac/cpc925_edac.c +++ b/drivers/edac/cpc925_edac.c | |||
@@ -995,7 +995,7 @@ static int __devinit cpc925_probe(struct platform_device *pdev) | |||
995 | pdata->edac_idx = edac_mc_idx++; | 995 | pdata->edac_idx = edac_mc_idx++; |
996 | pdata->name = pdev->name; | 996 | pdata->name = pdev->name; |
997 | 997 | ||
998 | mci->dev = &pdev->dev; | 998 | mci->pdev = &pdev->dev; |
999 | platform_set_drvdata(pdev, mci); | 999 | platform_set_drvdata(pdev, mci); |
1000 | mci->dev_name = dev_name(&pdev->dev); | 1000 | mci->dev_name = dev_name(&pdev->dev); |
1001 | mci->mtype_cap = MEM_FLAG_RDDR | MEM_FLAG_DDR; | 1001 | mci->mtype_cap = MEM_FLAG_RDDR | MEM_FLAG_DDR; |
diff --git a/drivers/edac/e752x_edac.c b/drivers/edac/e752x_edac.c index 3186512c9739..d75660634b43 100644 --- a/drivers/edac/e752x_edac.c +++ b/drivers/edac/e752x_edac.c | |||
@@ -1308,7 +1308,7 @@ static int e752x_probe1(struct pci_dev *pdev, int dev_idx) | |||
1308 | /* FIXME - what if different memory types are in different csrows? */ | 1308 | /* FIXME - what if different memory types are in different csrows? */ |
1309 | mci->mod_name = EDAC_MOD_STR; | 1309 | mci->mod_name = EDAC_MOD_STR; |
1310 | mci->mod_ver = E752X_REVISION; | 1310 | mci->mod_ver = E752X_REVISION; |
1311 | mci->dev = &pdev->dev; | 1311 | mci->pdev = &pdev->dev; |
1312 | 1312 | ||
1313 | debugf3("%s(): init pvt\n", __func__); | 1313 | debugf3("%s(): init pvt\n", __func__); |
1314 | pvt = (struct e752x_pvt *)mci->pvt_info; | 1314 | pvt = (struct e752x_pvt *)mci->pvt_info; |
diff --git a/drivers/edac/e7xxx_edac.c b/drivers/edac/e7xxx_edac.c index 9a9c1a546797..b111266dadf3 100644 --- a/drivers/edac/e7xxx_edac.c +++ b/drivers/edac/e7xxx_edac.c | |||
@@ -458,7 +458,7 @@ static int e7xxx_probe1(struct pci_dev *pdev, int dev_idx) | |||
458 | /* FIXME - what if different memory types are in different csrows? */ | 458 | /* FIXME - what if different memory types are in different csrows? */ |
459 | mci->mod_name = EDAC_MOD_STR; | 459 | mci->mod_name = EDAC_MOD_STR; |
460 | mci->mod_ver = E7XXX_REVISION; | 460 | mci->mod_ver = E7XXX_REVISION; |
461 | mci->dev = &pdev->dev; | 461 | mci->pdev = &pdev->dev; |
462 | debugf3("%s(): init pvt\n", __func__); | 462 | debugf3("%s(): init pvt\n", __func__); |
463 | pvt = (struct e7xxx_pvt *)mci->pvt_info; | 463 | pvt = (struct e7xxx_pvt *)mci->pvt_info; |
464 | pvt->dev_info = &e7xxx_devs[dev_idx]; | 464 | pvt->dev_info = &e7xxx_devs[dev_idx]; |
diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c index ce25750a83f9..811f09a38f3a 100644 --- a/drivers/edac/edac_mc.c +++ b/drivers/edac/edac_mc.c | |||
@@ -93,7 +93,7 @@ static void edac_mc_dump_mci(struct mem_ctl_info *mci) | |||
93 | mci->nr_csrows, mci->csrows); | 93 | mci->nr_csrows, mci->csrows); |
94 | debugf3("\tmci->nr_dimms = %d, dimms = %p\n", | 94 | debugf3("\tmci->nr_dimms = %d, dimms = %p\n", |
95 | mci->tot_dimms, mci->dimms); | 95 | mci->tot_dimms, mci->dimms); |
96 | debugf3("\tdev = %p\n", mci->dev); | 96 | debugf3("\tdev = %p\n", mci->pdev); |
97 | debugf3("\tmod_name:ctl_name = %s:%s\n", mci->mod_name, mci->ctl_name); | 97 | debugf3("\tmod_name:ctl_name = %s:%s\n", mci->mod_name, mci->ctl_name); |
98 | debugf3("\tpvt_info = %p\n\n", mci->pvt_info); | 98 | debugf3("\tpvt_info = %p\n\n", mci->pvt_info); |
99 | } | 99 | } |
@@ -428,7 +428,7 @@ struct mem_ctl_info *find_mci_by_dev(struct device *dev) | |||
428 | list_for_each(item, &mc_devices) { | 428 | list_for_each(item, &mc_devices) { |
429 | mci = list_entry(item, struct mem_ctl_info, link); | 429 | mci = list_entry(item, struct mem_ctl_info, link); |
430 | 430 | ||
431 | if (mci->dev == dev) | 431 | if (mci->pdev == dev) |
432 | return mci; | 432 | return mci; |
433 | } | 433 | } |
434 | 434 | ||
@@ -580,7 +580,7 @@ static int add_mc_to_global_list(struct mem_ctl_info *mci) | |||
580 | 580 | ||
581 | insert_before = &mc_devices; | 581 | insert_before = &mc_devices; |
582 | 582 | ||
583 | p = find_mci_by_dev(mci->dev); | 583 | p = find_mci_by_dev(mci->pdev); |
584 | if (unlikely(p != NULL)) | 584 | if (unlikely(p != NULL)) |
585 | goto fail0; | 585 | goto fail0; |
586 | 586 | ||
@@ -602,7 +602,7 @@ static int add_mc_to_global_list(struct mem_ctl_info *mci) | |||
602 | 602 | ||
603 | fail0: | 603 | fail0: |
604 | edac_printk(KERN_WARNING, EDAC_MC, | 604 | edac_printk(KERN_WARNING, EDAC_MC, |
605 | "%s (%s) %s %s already assigned %d\n", dev_name(p->dev), | 605 | "%s (%s) %s %s already assigned %d\n", dev_name(p->pdev), |
606 | edac_dev_name(mci), p->mod_name, p->ctl_name, p->mc_idx); | 606 | edac_dev_name(mci), p->mod_name, p->ctl_name, p->mc_idx); |
607 | return 1; | 607 | return 1; |
608 | 608 | ||
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c index f6a29b0eedc8..595371941ef9 100644 --- a/drivers/edac/edac_mc_sysfs.c +++ b/drivers/edac/edac_mc_sysfs.c | |||
@@ -916,7 +916,7 @@ int edac_create_sysfs_mci_device(struct mem_ctl_info *mci) | |||
916 | INIT_LIST_HEAD(&mci->grp_kobj_list); | 916 | INIT_LIST_HEAD(&mci->grp_kobj_list); |
917 | 917 | ||
918 | /* create a symlink for the device */ | 918 | /* create a symlink for the device */ |
919 | err = sysfs_create_link(kobj_mci, &mci->dev->kobj, | 919 | err = sysfs_create_link(kobj_mci, &mci->pdev->kobj, |
920 | EDAC_DEVICE_SYMLINK); | 920 | EDAC_DEVICE_SYMLINK); |
921 | if (err) { | 921 | if (err) { |
922 | debugf1("%s() failure to create symlink\n", __func__); | 922 | debugf1("%s() failure to create symlink\n", __func__); |
diff --git a/drivers/edac/i3000_edac.c b/drivers/edac/i3000_edac.c index 8ad1744faacd..d1ebd9b9ad6f 100644 --- a/drivers/edac/i3000_edac.c +++ b/drivers/edac/i3000_edac.c | |||
@@ -194,7 +194,7 @@ static void i3000_get_error_info(struct mem_ctl_info *mci, | |||
194 | { | 194 | { |
195 | struct pci_dev *pdev; | 195 | struct pci_dev *pdev; |
196 | 196 | ||
197 | pdev = to_pci_dev(mci->dev); | 197 | pdev = to_pci_dev(mci->pdev); |
198 | 198 | ||
199 | /* | 199 | /* |
200 | * This is a mess because there is no atomic way to read all the | 200 | * This is a mess because there is no atomic way to read all the |
@@ -368,7 +368,7 @@ static int i3000_probe1(struct pci_dev *pdev, int dev_idx) | |||
368 | 368 | ||
369 | debugf3("MC: %s(): init mci\n", __func__); | 369 | debugf3("MC: %s(): init mci\n", __func__); |
370 | 370 | ||
371 | mci->dev = &pdev->dev; | 371 | mci->pdev = &pdev->dev; |
372 | mci->mtype_cap = MEM_FLAG_DDR2; | 372 | mci->mtype_cap = MEM_FLAG_DDR2; |
373 | 373 | ||
374 | mci->edac_ctl_cap = EDAC_FLAG_SECDED; | 374 | mci->edac_ctl_cap = EDAC_FLAG_SECDED; |
diff --git a/drivers/edac/i3200_edac.c b/drivers/edac/i3200_edac.c index bbe43ef71823..600a05df3759 100644 --- a/drivers/edac/i3200_edac.c +++ b/drivers/edac/i3200_edac.c | |||
@@ -159,7 +159,7 @@ static void i3200_clear_error_info(struct mem_ctl_info *mci) | |||
159 | { | 159 | { |
160 | struct pci_dev *pdev; | 160 | struct pci_dev *pdev; |
161 | 161 | ||
162 | pdev = to_pci_dev(mci->dev); | 162 | pdev = to_pci_dev(mci->pdev); |
163 | 163 | ||
164 | /* | 164 | /* |
165 | * Clear any error bits. | 165 | * Clear any error bits. |
@@ -176,7 +176,7 @@ static void i3200_get_and_clear_error_info(struct mem_ctl_info *mci, | |||
176 | struct i3200_priv *priv = mci->pvt_info; | 176 | struct i3200_priv *priv = mci->pvt_info; |
177 | void __iomem *window = priv->window; | 177 | void __iomem *window = priv->window; |
178 | 178 | ||
179 | pdev = to_pci_dev(mci->dev); | 179 | pdev = to_pci_dev(mci->pdev); |
180 | 180 | ||
181 | /* | 181 | /* |
182 | * This is a mess because there is no atomic way to read all the | 182 | * This is a mess because there is no atomic way to read all the |
@@ -354,7 +354,7 @@ static int i3200_probe1(struct pci_dev *pdev, int dev_idx) | |||
354 | 354 | ||
355 | debugf3("MC: %s(): init mci\n", __func__); | 355 | debugf3("MC: %s(): init mci\n", __func__); |
356 | 356 | ||
357 | mci->dev = &pdev->dev; | 357 | mci->pdev = &pdev->dev; |
358 | mci->mtype_cap = MEM_FLAG_DDR2; | 358 | mci->mtype_cap = MEM_FLAG_DDR2; |
359 | 359 | ||
360 | mci->edac_ctl_cap = EDAC_FLAG_SECDED; | 360 | mci->edac_ctl_cap = EDAC_FLAG_SECDED; |
diff --git a/drivers/edac/i5000_edac.c b/drivers/edac/i5000_edac.c index 11ea835f155a..a69245ad5f32 100644 --- a/drivers/edac/i5000_edac.c +++ b/drivers/edac/i5000_edac.c | |||
@@ -1409,7 +1409,7 @@ static int i5000_probe1(struct pci_dev *pdev, int dev_idx) | |||
1409 | kobject_get(&mci->edac_mci_kobj); | 1409 | kobject_get(&mci->edac_mci_kobj); |
1410 | debugf0("MC: %s: %s(): mci = %p\n", __FILE__, __func__, mci); | 1410 | debugf0("MC: %s: %s(): mci = %p\n", __FILE__, __func__, mci); |
1411 | 1411 | ||
1412 | mci->dev = &pdev->dev; /* record ptr to the generic device */ | 1412 | mci->pdev = &pdev->dev; /* record ptr to the generic device */ |
1413 | 1413 | ||
1414 | pvt = mci->pvt_info; | 1414 | pvt = mci->pvt_info; |
1415 | pvt->system_address = pdev; /* Record this device in our private */ | 1415 | pvt->system_address = pdev; /* Record this device in our private */ |
diff --git a/drivers/edac/i5100_edac.c b/drivers/edac/i5100_edac.c index e9e7c2a29dc3..19aa2843c46a 100644 --- a/drivers/edac/i5100_edac.c +++ b/drivers/edac/i5100_edac.c | |||
@@ -943,7 +943,7 @@ static int __devinit i5100_init_one(struct pci_dev *pdev, | |||
943 | goto bail_disable_ch1; | 943 | goto bail_disable_ch1; |
944 | } | 944 | } |
945 | 945 | ||
946 | mci->dev = &pdev->dev; | 946 | mci->pdev = &pdev->dev; |
947 | 947 | ||
948 | priv = mci->pvt_info; | 948 | priv = mci->pvt_info; |
949 | priv->ranksperchan = ranksperch; | 949 | priv->ranksperchan = ranksperch; |
diff --git a/drivers/edac/i5400_edac.c b/drivers/edac/i5400_edac.c index 6640c29e1885..ba60694437bd 100644 --- a/drivers/edac/i5400_edac.c +++ b/drivers/edac/i5400_edac.c | |||
@@ -1299,7 +1299,7 @@ static int i5400_probe1(struct pci_dev *pdev, int dev_idx) | |||
1299 | 1299 | ||
1300 | debugf0("MC: %s: %s(): mci = %p\n", __FILE__, __func__, mci); | 1300 | debugf0("MC: %s: %s(): mci = %p\n", __FILE__, __func__, mci); |
1301 | 1301 | ||
1302 | mci->dev = &pdev->dev; /* record ptr to the generic device */ | 1302 | mci->pdev = &pdev->dev; /* record ptr to the generic device */ |
1303 | 1303 | ||
1304 | pvt = mci->pvt_info; | 1304 | pvt = mci->pvt_info; |
1305 | pvt->system_address = pdev; /* Record this device in our private */ | 1305 | pvt->system_address = pdev; /* Record this device in our private */ |
diff --git a/drivers/edac/i7300_edac.c b/drivers/edac/i7300_edac.c index 97c22fd650ee..db84456e65d9 100644 --- a/drivers/edac/i7300_edac.c +++ b/drivers/edac/i7300_edac.c | |||
@@ -1057,7 +1057,7 @@ static int __devinit i7300_init_one(struct pci_dev *pdev, | |||
1057 | 1057 | ||
1058 | debugf0("MC: " __FILE__ ": %s(): mci = %p\n", __func__, mci); | 1058 | debugf0("MC: " __FILE__ ": %s(): mci = %p\n", __func__, mci); |
1059 | 1059 | ||
1060 | mci->dev = &pdev->dev; /* record ptr to the generic device */ | 1060 | mci->pdev = &pdev->dev; /* record ptr to the generic device */ |
1061 | 1061 | ||
1062 | pvt = mci->pvt_info; | 1062 | pvt = mci->pvt_info; |
1063 | pvt->pci_dev_16_0_fsb_ctlr = pdev; /* Record this device in our private */ | 1063 | pvt->pci_dev_16_0_fsb_ctlr = pdev; /* Record this device in our private */ |
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c index c05e1ada7a3d..598d215f7bd5 100644 --- a/drivers/edac/i7core_edac.c +++ b/drivers/edac/i7core_edac.c | |||
@@ -2122,7 +2122,7 @@ static void i7core_unregister_mci(struct i7core_dev *i7core_dev) | |||
2122 | i7core_pci_ctl_release(pvt); | 2122 | i7core_pci_ctl_release(pvt); |
2123 | 2123 | ||
2124 | /* Remove MC sysfs nodes */ | 2124 | /* Remove MC sysfs nodes */ |
2125 | edac_mc_del_mc(mci->dev); | 2125 | edac_mc_del_mc(mci->pdev); |
2126 | 2126 | ||
2127 | debugf1("%s: free mci struct\n", mci->ctl_name); | 2127 | debugf1("%s: free mci struct\n", mci->ctl_name); |
2128 | kfree(mci->ctl_name); | 2128 | kfree(mci->ctl_name); |
@@ -2188,7 +2188,7 @@ static int i7core_register_mci(struct i7core_dev *i7core_dev) | |||
2188 | /* Get dimm basic config */ | 2188 | /* Get dimm basic config */ |
2189 | get_dimm_config(mci); | 2189 | get_dimm_config(mci); |
2190 | /* record ptr to the generic device */ | 2190 | /* record ptr to the generic device */ |
2191 | mci->dev = &i7core_dev->pdev[0]->dev; | 2191 | mci->pdev = &i7core_dev->pdev[0]->dev; |
2192 | /* Set the function pointer to an actual operation function */ | 2192 | /* Set the function pointer to an actual operation function */ |
2193 | mci->edac_check = i7core_check_error; | 2193 | mci->edac_check = i7core_check_error; |
2194 | 2194 | ||
diff --git a/drivers/edac/i82443bxgx_edac.c b/drivers/edac/i82443bxgx_edac.c index 52072c28a8a6..65fd2e1eceb8 100644 --- a/drivers/edac/i82443bxgx_edac.c +++ b/drivers/edac/i82443bxgx_edac.c | |||
@@ -124,7 +124,7 @@ static void i82443bxgx_edacmc_get_error_info(struct mem_ctl_info *mci, | |||
124 | *info) | 124 | *info) |
125 | { | 125 | { |
126 | struct pci_dev *pdev; | 126 | struct pci_dev *pdev; |
127 | pdev = to_pci_dev(mci->dev); | 127 | pdev = to_pci_dev(mci->pdev); |
128 | pci_read_config_dword(pdev, I82443BXGX_EAP, &info->eap); | 128 | pci_read_config_dword(pdev, I82443BXGX_EAP, &info->eap); |
129 | if (info->eap & I82443BXGX_EAP_OFFSET_SBE) | 129 | if (info->eap & I82443BXGX_EAP_OFFSET_SBE) |
130 | /* Clear error to allow next error to be reported [p.61] */ | 130 | /* Clear error to allow next error to be reported [p.61] */ |
@@ -260,7 +260,7 @@ static int i82443bxgx_edacmc_probe1(struct pci_dev *pdev, int dev_idx) | |||
260 | return -ENOMEM; | 260 | return -ENOMEM; |
261 | 261 | ||
262 | debugf0("MC: %s: %s(): mci = %p\n", __FILE__, __func__, mci); | 262 | debugf0("MC: %s: %s(): mci = %p\n", __FILE__, __func__, mci); |
263 | mci->dev = &pdev->dev; | 263 | mci->pdev = &pdev->dev; |
264 | mci->mtype_cap = MEM_FLAG_EDO | MEM_FLAG_SDR | MEM_FLAG_RDR; | 264 | mci->mtype_cap = MEM_FLAG_EDO | MEM_FLAG_SDR | MEM_FLAG_RDR; |
265 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_EC | EDAC_FLAG_SECDED; | 265 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_EC | EDAC_FLAG_SECDED; |
266 | pci_read_config_byte(pdev, I82443BXGX_DRAMC, &dramc); | 266 | pci_read_config_byte(pdev, I82443BXGX_DRAMC, &dramc); |
diff --git a/drivers/edac/i82860_edac.c b/drivers/edac/i82860_edac.c index 08045059d10b..8f3350000942 100644 --- a/drivers/edac/i82860_edac.c +++ b/drivers/edac/i82860_edac.c | |||
@@ -67,7 +67,7 @@ static void i82860_get_error_info(struct mem_ctl_info *mci, | |||
67 | { | 67 | { |
68 | struct pci_dev *pdev; | 68 | struct pci_dev *pdev; |
69 | 69 | ||
70 | pdev = to_pci_dev(mci->dev); | 70 | pdev = to_pci_dev(mci->pdev); |
71 | 71 | ||
72 | /* | 72 | /* |
73 | * This is a mess because there is no atomic way to read all the | 73 | * This is a mess because there is no atomic way to read all the |
@@ -211,7 +211,7 @@ static int i82860_probe1(struct pci_dev *pdev, int dev_idx) | |||
211 | return -ENOMEM; | 211 | return -ENOMEM; |
212 | 212 | ||
213 | debugf3("%s(): init mci\n", __func__); | 213 | debugf3("%s(): init mci\n", __func__); |
214 | mci->dev = &pdev->dev; | 214 | mci->pdev = &pdev->dev; |
215 | mci->mtype_cap = MEM_FLAG_DDR; | 215 | mci->mtype_cap = MEM_FLAG_DDR; |
216 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; | 216 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; |
217 | /* I"m not sure about this but I think that all RDRAM is SECDED */ | 217 | /* I"m not sure about this but I think that all RDRAM is SECDED */ |
diff --git a/drivers/edac/i82875p_edac.c b/drivers/edac/i82875p_edac.c index b613e31c16e5..1cc682d0678d 100644 --- a/drivers/edac/i82875p_edac.c +++ b/drivers/edac/i82875p_edac.c | |||
@@ -189,7 +189,7 @@ static void i82875p_get_error_info(struct mem_ctl_info *mci, | |||
189 | { | 189 | { |
190 | struct pci_dev *pdev; | 190 | struct pci_dev *pdev; |
191 | 191 | ||
192 | pdev = to_pci_dev(mci->dev); | 192 | pdev = to_pci_dev(mci->pdev); |
193 | 193 | ||
194 | /* | 194 | /* |
195 | * This is a mess because there is no atomic way to read all the | 195 | * This is a mess because there is no atomic way to read all the |
@@ -430,7 +430,7 @@ static int i82875p_probe1(struct pci_dev *pdev, int dev_idx) | |||
430 | kobject_get(&mci->edac_mci_kobj); | 430 | kobject_get(&mci->edac_mci_kobj); |
431 | 431 | ||
432 | debugf3("%s(): init mci\n", __func__); | 432 | debugf3("%s(): init mci\n", __func__); |
433 | mci->dev = &pdev->dev; | 433 | mci->pdev = &pdev->dev; |
434 | mci->mtype_cap = MEM_FLAG_DDR; | 434 | mci->mtype_cap = MEM_FLAG_DDR; |
435 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; | 435 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; |
436 | mci->edac_cap = EDAC_FLAG_UNKNOWN; | 436 | mci->edac_cap = EDAC_FLAG_UNKNOWN; |
diff --git a/drivers/edac/i82975x_edac.c b/drivers/edac/i82975x_edac.c index 433332c7cdba..8b26401efa19 100644 --- a/drivers/edac/i82975x_edac.c +++ b/drivers/edac/i82975x_edac.c | |||
@@ -241,7 +241,7 @@ static void i82975x_get_error_info(struct mem_ctl_info *mci, | |||
241 | { | 241 | { |
242 | struct pci_dev *pdev; | 242 | struct pci_dev *pdev; |
243 | 243 | ||
244 | pdev = to_pci_dev(mci->dev); | 244 | pdev = to_pci_dev(mci->pdev); |
245 | 245 | ||
246 | /* | 246 | /* |
247 | * This is a mess because there is no atomic way to read all the | 247 | * This is a mess because there is no atomic way to read all the |
@@ -559,7 +559,7 @@ static int i82975x_probe1(struct pci_dev *pdev, int dev_idx) | |||
559 | } | 559 | } |
560 | 560 | ||
561 | debugf3("%s(): init mci\n", __func__); | 561 | debugf3("%s(): init mci\n", __func__); |
562 | mci->dev = &pdev->dev; | 562 | mci->pdev = &pdev->dev; |
563 | mci->mtype_cap = MEM_FLAG_DDR2; | 563 | mci->mtype_cap = MEM_FLAG_DDR2; |
564 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; | 564 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; |
565 | mci->edac_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; | 565 | mci->edac_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; |
diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c index 4c402353ba98..67fb3280f333 100644 --- a/drivers/edac/mpc85xx_edac.c +++ b/drivers/edac/mpc85xx_edac.c | |||
@@ -989,9 +989,9 @@ static int __devinit mpc85xx_mc_err_probe(struct platform_device *op) | |||
989 | pdata = mci->pvt_info; | 989 | pdata = mci->pvt_info; |
990 | pdata->name = "mpc85xx_mc_err"; | 990 | pdata->name = "mpc85xx_mc_err"; |
991 | pdata->irq = NO_IRQ; | 991 | pdata->irq = NO_IRQ; |
992 | mci->dev = &op->dev; | 992 | mci->pdev = &op->dev; |
993 | pdata->edac_idx = edac_mc_idx++; | 993 | pdata->edac_idx = edac_mc_idx++; |
994 | dev_set_drvdata(mci->dev, mci); | 994 | dev_set_drvdata(mci->pdev, mci); |
995 | mci->ctl_name = pdata->name; | 995 | mci->ctl_name = pdata->name; |
996 | mci->dev_name = pdata->name; | 996 | mci->dev_name = pdata->name; |
997 | 997 | ||
diff --git a/drivers/edac/mv64x60_edac.c b/drivers/edac/mv64x60_edac.c index b0bb5a3d2527..ff6b8e248e89 100644 --- a/drivers/edac/mv64x60_edac.c +++ b/drivers/edac/mv64x60_edac.c | |||
@@ -724,7 +724,7 @@ static int __devinit mv64x60_mc_err_probe(struct platform_device *pdev) | |||
724 | } | 724 | } |
725 | 725 | ||
726 | pdata = mci->pvt_info; | 726 | pdata = mci->pvt_info; |
727 | mci->dev = &pdev->dev; | 727 | mci->pdev = &pdev->dev; |
728 | platform_set_drvdata(pdev, mci); | 728 | platform_set_drvdata(pdev, mci); |
729 | pdata->name = "mv64x60_mc_err"; | 729 | pdata->name = "mv64x60_mc_err"; |
730 | pdata->irq = NO_IRQ; | 730 | pdata->irq = NO_IRQ; |
diff --git a/drivers/edac/pasemi_edac.c b/drivers/edac/pasemi_edac.c index b095a906a994..92becaa8722a 100644 --- a/drivers/edac/pasemi_edac.c +++ b/drivers/edac/pasemi_edac.c | |||
@@ -74,7 +74,7 @@ static int system_mmc_id; | |||
74 | 74 | ||
75 | static u32 pasemi_edac_get_error_info(struct mem_ctl_info *mci) | 75 | static u32 pasemi_edac_get_error_info(struct mem_ctl_info *mci) |
76 | { | 76 | { |
77 | struct pci_dev *pdev = to_pci_dev(mci->dev); | 77 | struct pci_dev *pdev = to_pci_dev(mci->pdev); |
78 | u32 tmp; | 78 | u32 tmp; |
79 | 79 | ||
80 | pci_read_config_dword(pdev, MCDEBUG_ERRSTA, | 80 | pci_read_config_dword(pdev, MCDEBUG_ERRSTA, |
@@ -95,7 +95,7 @@ static u32 pasemi_edac_get_error_info(struct mem_ctl_info *mci) | |||
95 | 95 | ||
96 | static void pasemi_edac_process_error_info(struct mem_ctl_info *mci, u32 errsta) | 96 | static void pasemi_edac_process_error_info(struct mem_ctl_info *mci, u32 errsta) |
97 | { | 97 | { |
98 | struct pci_dev *pdev = to_pci_dev(mci->dev); | 98 | struct pci_dev *pdev = to_pci_dev(mci->pdev); |
99 | u32 errlog1a; | 99 | u32 errlog1a; |
100 | u32 cs; | 100 | u32 cs; |
101 | 101 | ||
@@ -225,7 +225,7 @@ static int __devinit pasemi_edac_probe(struct pci_dev *pdev, | |||
225 | MCCFG_ERRCOR_ECC_GEN_EN | | 225 | MCCFG_ERRCOR_ECC_GEN_EN | |
226 | MCCFG_ERRCOR_ECC_CRR_EN; | 226 | MCCFG_ERRCOR_ECC_CRR_EN; |
227 | 227 | ||
228 | mci->dev = &pdev->dev; | 228 | mci->pdev = &pdev->dev; |
229 | mci->mtype_cap = MEM_FLAG_DDR | MEM_FLAG_RDDR; | 229 | mci->mtype_cap = MEM_FLAG_DDR | MEM_FLAG_RDDR; |
230 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_EC | EDAC_FLAG_SECDED; | 230 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_EC | EDAC_FLAG_SECDED; |
231 | mci->edac_cap = (errcor & MCCFG_ERRCOR_ECC_GEN_EN) ? | 231 | mci->edac_cap = (errcor & MCCFG_ERRCOR_ECC_GEN_EN) ? |
diff --git a/drivers/edac/ppc4xx_edac.c b/drivers/edac/ppc4xx_edac.c index f3f9fed06ad7..53519828cc36 100644 --- a/drivers/edac/ppc4xx_edac.c +++ b/drivers/edac/ppc4xx_edac.c | |||
@@ -1027,9 +1027,9 @@ ppc4xx_edac_mc_init(struct mem_ctl_info *mci, | |||
1027 | 1027 | ||
1028 | /* Initial driver pointers and private data */ | 1028 | /* Initial driver pointers and private data */ |
1029 | 1029 | ||
1030 | mci->dev = &op->dev; | 1030 | mci->pdev = &op->dev; |
1031 | 1031 | ||
1032 | dev_set_drvdata(mci->dev, mci); | 1032 | dev_set_drvdata(mci->pdev, mci); |
1033 | 1033 | ||
1034 | pdata = mci->pvt_info; | 1034 | pdata = mci->pvt_info; |
1035 | 1035 | ||
@@ -1334,7 +1334,7 @@ static int __devinit ppc4xx_edac_probe(struct platform_device *op) | |||
1334 | return 0; | 1334 | return 0; |
1335 | 1335 | ||
1336 | fail1: | 1336 | fail1: |
1337 | edac_mc_del_mc(mci->dev); | 1337 | edac_mc_del_mc(mci->pdev); |
1338 | 1338 | ||
1339 | fail: | 1339 | fail: |
1340 | edac_mc_free(mci); | 1340 | edac_mc_free(mci); |
@@ -1368,7 +1368,7 @@ ppc4xx_edac_remove(struct platform_device *op) | |||
1368 | 1368 | ||
1369 | dcr_unmap(pdata->dcr_host, SDRAM_DCR_RESOURCE_LEN); | 1369 | dcr_unmap(pdata->dcr_host, SDRAM_DCR_RESOURCE_LEN); |
1370 | 1370 | ||
1371 | edac_mc_del_mc(mci->dev); | 1371 | edac_mc_del_mc(mci->pdev); |
1372 | edac_mc_free(mci); | 1372 | edac_mc_free(mci); |
1373 | 1373 | ||
1374 | return 0; | 1374 | return 0; |
diff --git a/drivers/edac/r82600_edac.c b/drivers/edac/r82600_edac.c index e1cacd164f31..cf4ccbdba85d 100644 --- a/drivers/edac/r82600_edac.c +++ b/drivers/edac/r82600_edac.c | |||
@@ -140,7 +140,7 @@ static void r82600_get_error_info(struct mem_ctl_info *mci, | |||
140 | { | 140 | { |
141 | struct pci_dev *pdev; | 141 | struct pci_dev *pdev; |
142 | 142 | ||
143 | pdev = to_pci_dev(mci->dev); | 143 | pdev = to_pci_dev(mci->pdev); |
144 | pci_read_config_dword(pdev, R82600_EAP, &info->eapr); | 144 | pci_read_config_dword(pdev, R82600_EAP, &info->eapr); |
145 | 145 | ||
146 | if (info->eapr & BIT(0)) | 146 | if (info->eapr & BIT(0)) |
@@ -296,7 +296,7 @@ static int r82600_probe1(struct pci_dev *pdev, int dev_idx) | |||
296 | return -ENOMEM; | 296 | return -ENOMEM; |
297 | 297 | ||
298 | debugf0("%s(): mci = %p\n", __func__, mci); | 298 | debugf0("%s(): mci = %p\n", __func__, mci); |
299 | mci->dev = &pdev->dev; | 299 | mci->pdev = &pdev->dev; |
300 | mci->mtype_cap = MEM_FLAG_RDDR | MEM_FLAG_DDR; | 300 | mci->mtype_cap = MEM_FLAG_RDDR | MEM_FLAG_DDR; |
301 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_EC | EDAC_FLAG_SECDED; | 301 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_EC | EDAC_FLAG_SECDED; |
302 | /* FIXME try to work out if the chip leads have been used for COM2 | 302 | /* FIXME try to work out if the chip leads have been used for COM2 |
diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index e834dfd034d6..efa488357ae6 100644 --- a/drivers/edac/sb_edac.c +++ b/drivers/edac/sb_edac.c | |||
@@ -1607,7 +1607,7 @@ static void sbridge_unregister_mci(struct sbridge_dev *sbridge_dev) | |||
1607 | mce_unregister_decode_chain(&sbridge_mce_dec); | 1607 | mce_unregister_decode_chain(&sbridge_mce_dec); |
1608 | 1608 | ||
1609 | /* Remove MC sysfs nodes */ | 1609 | /* Remove MC sysfs nodes */ |
1610 | edac_mc_del_mc(mci->dev); | 1610 | edac_mc_del_mc(mci->pdev); |
1611 | 1611 | ||
1612 | debugf1("%s: free mci struct\n", mci->ctl_name); | 1612 | debugf1("%s: free mci struct\n", mci->ctl_name); |
1613 | kfree(mci->ctl_name); | 1613 | kfree(mci->ctl_name); |
@@ -1672,7 +1672,7 @@ static int sbridge_register_mci(struct sbridge_dev *sbridge_dev) | |||
1672 | get_memory_layout(mci); | 1672 | get_memory_layout(mci); |
1673 | 1673 | ||
1674 | /* record ptr to the generic device */ | 1674 | /* record ptr to the generic device */ |
1675 | mci->dev = &sbridge_dev->pdev[0]->dev; | 1675 | mci->pdev = &sbridge_dev->pdev[0]->dev; |
1676 | 1676 | ||
1677 | /* add this new MC control structure to EDAC's list of MCs */ | 1677 | /* add this new MC control structure to EDAC's list of MCs */ |
1678 | if (unlikely(edac_mc_add_mc(mci))) { | 1678 | if (unlikely(edac_mc_add_mc(mci))) { |
diff --git a/drivers/edac/tile_edac.c b/drivers/edac/tile_edac.c index 7bb4614730db..604bc4df653a 100644 --- a/drivers/edac/tile_edac.c +++ b/drivers/edac/tile_edac.c | |||
@@ -69,7 +69,7 @@ static void tile_edac_check(struct mem_ctl_info *mci) | |||
69 | 69 | ||
70 | /* Check if the current error count is different from the saved one. */ | 70 | /* Check if the current error count is different from the saved one. */ |
71 | if (mem_error.sbe_count != priv->ce_count) { | 71 | if (mem_error.sbe_count != priv->ce_count) { |
72 | dev_dbg(mci->dev, "ECC CE err on node %d\n", priv->node); | 72 | dev_dbg(mci->pdev, "ECC CE err on node %d\n", priv->node); |
73 | priv->ce_count = mem_error.sbe_count; | 73 | priv->ce_count = mem_error.sbe_count; |
74 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, | 74 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, |
75 | 0, 0, 0, | 75 | 0, 0, 0, |
@@ -149,7 +149,7 @@ static int __devinit tile_edac_mc_probe(struct platform_device *pdev) | |||
149 | priv->node = pdev->id; | 149 | priv->node = pdev->id; |
150 | priv->hv_devhdl = hv_devhdl; | 150 | priv->hv_devhdl = hv_devhdl; |
151 | 151 | ||
152 | mci->dev = &pdev->dev; | 152 | mci->pdev = &pdev->dev; |
153 | mci->mtype_cap = MEM_FLAG_DDR2; | 153 | mci->mtype_cap = MEM_FLAG_DDR2; |
154 | mci->edac_ctl_cap = EDAC_FLAG_SECDED; | 154 | mci->edac_ctl_cap = EDAC_FLAG_SECDED; |
155 | 155 | ||
diff --git a/drivers/edac/x38_edac.c b/drivers/edac/x38_edac.c index 1ac7962d63ea..f9506f26e2bf 100644 --- a/drivers/edac/x38_edac.c +++ b/drivers/edac/x38_edac.c | |||
@@ -151,7 +151,7 @@ static void x38_clear_error_info(struct mem_ctl_info *mci) | |||
151 | { | 151 | { |
152 | struct pci_dev *pdev; | 152 | struct pci_dev *pdev; |
153 | 153 | ||
154 | pdev = to_pci_dev(mci->dev); | 154 | pdev = to_pci_dev(mci->pdev); |
155 | 155 | ||
156 | /* | 156 | /* |
157 | * Clear any error bits. | 157 | * Clear any error bits. |
@@ -172,7 +172,7 @@ static void x38_get_and_clear_error_info(struct mem_ctl_info *mci, | |||
172 | struct pci_dev *pdev; | 172 | struct pci_dev *pdev; |
173 | void __iomem *window = mci->pvt_info; | 173 | void __iomem *window = mci->pvt_info; |
174 | 174 | ||
175 | pdev = to_pci_dev(mci->dev); | 175 | pdev = to_pci_dev(mci->pdev); |
176 | 176 | ||
177 | /* | 177 | /* |
178 | * This is a mess because there is no atomic way to read all the | 178 | * This is a mess because there is no atomic way to read all the |
@@ -354,7 +354,7 @@ static int x38_probe1(struct pci_dev *pdev, int dev_idx) | |||
354 | 354 | ||
355 | debugf3("MC: %s(): init mci\n", __func__); | 355 | debugf3("MC: %s(): init mci\n", __func__); |
356 | 356 | ||
357 | mci->dev = &pdev->dev; | 357 | mci->pdev = &pdev->dev; |
358 | mci->mtype_cap = MEM_FLAG_DDR2; | 358 | mci->mtype_cap = MEM_FLAG_DDR2; |
359 | 359 | ||
360 | mci->edac_ctl_cap = EDAC_FLAG_SECDED; | 360 | mci->edac_ctl_cap = EDAC_FLAG_SECDED; |