edac: sb_edac: Fix a INTERLEAVE_MODE() misuse
authorHui Wang <jason77.wang@gmail.com>
Mon, 6 Feb 2012 07:11:00 +0000 (04:11 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 21 Mar 2012 18:20:02 +0000 (15:20 -0300)
commitad9c40b7dd749d6429c8b21178c125004c6dc75d
tree94c82f64c71618402462cd620fb8db47fd0afd0a
parent22a5c27bec0161c70cc2d8d1730f9b14b604757d
edac: sb_edac: Fix a INTERLEAVE_MODE() misuse

We can identify dram interleave mode from the Dram Rule register
rather than Dram Interleave list register.

In this context, the reg of INTERLEAVE_MODE(reg) contains the Dram
Interleave list register, we can't get interleave mode from the reg,
while the variable interleave_mode saves the the mode got from the
Dram Rule register, so we use the variable to replace
INTERLEAVE_MDDE(reg) here.

Signed-off-by: Hui Wang <jason77.wang@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/sb_edac.c