|
@@ -39,7 +39,7 @@ static LIST_HEAD(mc_devices);
|
|
|
|
|
|
#ifdef CONFIG_EDAC_DEBUG
|
|
#ifdef CONFIG_EDAC_DEBUG
|
|
|
|
|
|
-static void edac_mc_dump_channel(struct channel_info *chan)
|
|
|
|
|
|
+static void edac_mc_dump_channel(struct rank_info *chan)
|
|
{
|
|
{
|
|
debugf4("\tchannel = %p\n", chan);
|
|
debugf4("\tchannel = %p\n", chan);
|
|
debugf4("\tchannel->chan_idx = %d\n", chan->chan_idx);
|
|
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,
|
|
{
|
|
{
|
|
struct mem_ctl_info *mci;
|
|
struct mem_ctl_info *mci;
|
|
struct csrow_info *csi, *csrow;
|
|
struct csrow_info *csi, *csrow;
|
|
- struct channel_info *chi, *chp, *chan;
|
|
|
|
|
|
+ struct rank_info *chi, *chp, *chan;
|
|
void *pvt;
|
|
void *pvt;
|
|
unsigned size;
|
|
unsigned size;
|
|
int row, chn;
|
|
int row, chn;
|
|
@@ -181,7 +181,7 @@ struct mem_ctl_info *edac_mc_alloc(unsigned sz_pvt, unsigned nr_csrows,
|
|
* rather than an imaginary chunk of memory located at address 0.
|
|
* rather than an imaginary chunk of memory located at address 0.
|
|
*/
|
|
*/
|
|
csi = (struct csrow_info *)(((char *)mci) + ((unsigned long)csi));
|
|
csi = (struct csrow_info *)(((char *)mci) + ((unsigned long)csi));
|
|
- chi = (struct channel_info *)(((char *)mci) + ((unsigned long)chi));
|
|
|
|
|
|
+ chi = (struct rank_info *)(((char *)mci) + ((unsigned long)chi));
|
|
pvt = sz_pvt ? (((char *)mci) + ((unsigned long)pvt)) : NULL;
|
|
pvt = sz_pvt ? (((char *)mci) + ((unsigned long)pvt)) : NULL;
|
|
|
|
|
|
/* setup index and various internal pointers */
|
|
/* setup index and various internal pointers */
|