diff options
Diffstat (limited to 'drivers/edac/edac_mc.c')
-rw-r--r-- | drivers/edac/edac_mc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c index da09cd74bc5..feef7733fae 100644 --- a/drivers/edac/edac_mc.c +++ b/drivers/edac/edac_mc.c | |||
@@ -39,7 +39,7 @@ static LIST_HEAD(mc_devices); | |||
39 | 39 | ||
40 | #ifdef CONFIG_EDAC_DEBUG | 40 | #ifdef CONFIG_EDAC_DEBUG |
41 | 41 | ||
42 | static void edac_mc_dump_channel(struct channel_info *chan) | 42 | static void edac_mc_dump_channel(struct rank_info *chan) |
43 | { | 43 | { |
44 | debugf4("\tchannel = %p\n", chan); | 44 | debugf4("\tchannel = %p\n", chan); |
45 | debugf4("\tchannel->chan_idx = %d\n", chan->chan_idx); | 45 | debugf4("\tchannel->chan_idx = %d\n", chan->chan_idx); |
@@ -156,7 +156,7 @@ struct mem_ctl_info *edac_mc_alloc(unsigned sz_pvt, unsigned nr_csrows, | |||
156 | { | 156 | { |
157 | struct mem_ctl_info *mci; | 157 | struct mem_ctl_info *mci; |
158 | struct csrow_info *csi, *csrow; | 158 | struct csrow_info *csi, *csrow; |
159 | struct channel_info *chi, *chp, *chan; | 159 | struct rank_info *chi, *chp, *chan; |
160 | void *pvt; | 160 | void *pvt; |
161 | unsigned size; | 161 | unsigned size; |
162 | int row, chn; | 162 | int row, chn; |
@@ -181,7 +181,7 @@ struct mem_ctl_info *edac_mc_alloc(unsigned sz_pvt, unsigned nr_csrows, | |||
181 | * rather than an imaginary chunk of memory located at address 0. | 181 | * rather than an imaginary chunk of memory located at address 0. |
182 | */ | 182 | */ |
183 | csi = (struct csrow_info *)(((char *)mci) + ((unsigned long)csi)); | 183 | csi = (struct csrow_info *)(((char *)mci) + ((unsigned long)csi)); |
184 | chi = (struct channel_info *)(((char *)mci) + ((unsigned long)chi)); | 184 | chi = (struct rank_info *)(((char *)mci) + ((unsigned long)chi)); |
185 | pvt = sz_pvt ? (((char *)mci) + ((unsigned long)pvt)) : NULL; | 185 | pvt = sz_pvt ? (((char *)mci) + ((unsigned long)pvt)) : NULL; |
186 | 186 | ||
187 | /* setup index and various internal pointers */ | 187 | /* setup index and various internal pointers */ |