edac i5000, i5400: fix pointer math in i5000_get_mc_regs()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 27 Jun 2012 09:07:58 +0000 (12:07 +0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jun 2012 12:08:40 +0000 (09:08 -0300)
commitf58d0dee07fe6328f775669eb6aa3a123efad6c2
tree1d330e6db0495cbe033d761feb3686a7de790dea
parent38ced28b21efff18fd5e5c98a92830e8f0031cee
edac i5000, i5400: fix pointer math in i5000_get_mc_regs()

"pvt->ambase" is a u64 datatype.  The intent here is to fill the first
half in the first call to pci_read_config_dword() and the other half in
the second.  Unfortunately the pointer math is wrong so we set the wrong
data.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/i5000_edac.c
drivers/edac/i5400_edac.c