diff options
Diffstat (limited to 'drivers/edac/i5400_edac.c')
-rw-r--r-- | drivers/edac/i5400_edac.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/edac/i5400_edac.c b/drivers/edac/i5400_edac.c index ba60694437bd..0570cf3d2563 100644 --- a/drivers/edac/i5400_edac.c +++ b/drivers/edac/i5400_edac.c | |||
@@ -1203,8 +1203,8 @@ static int i5400_init_dimms(struct mem_ctl_info *mci) | |||
1203 | 1203 | ||
1204 | size_mb = pvt->dimm_info[slot][channel].megabytes; | 1204 | size_mb = pvt->dimm_info[slot][channel].megabytes; |
1205 | 1205 | ||
1206 | debugf2("%s: dimm%zd (branch %d channel %d slot %d): %d.%03d GB\n", | 1206 | debugf2("%s: dimm (branch %d channel %d slot %d): %d.%03d GB\n", |
1207 | __func__, dimm - mci->dimms, | 1207 | __func__, |
1208 | channel / 2, channel % 2, slot, | 1208 | channel / 2, channel % 2, slot, |
1209 | size_mb / 1000, size_mb % 1000); | 1209 | size_mb / 1000, size_mb % 1000); |
1210 | 1210 | ||
@@ -1227,7 +1227,7 @@ static int i5400_init_dimms(struct mem_ctl_info *mci) | |||
1227 | * With such single-DIMM mode, the SDCC algorithm degrades to SECDEC+. | 1227 | * With such single-DIMM mode, the SDCC algorithm degrades to SECDEC+. |
1228 | */ | 1228 | */ |
1229 | if (ndimms == 1) | 1229 | if (ndimms == 1) |
1230 | mci->dimms[0].edac_mode = EDAC_SECDED; | 1230 | mci->dimms[0]->edac_mode = EDAC_SECDED; |
1231 | 1231 | ||
1232 | return (ndimms == 0); | 1232 | return (ndimms == 0); |
1233 | } | 1233 | } |