aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2011-02-21 13:37:24 -0500
committerBorislav Petkov <borislav.petkov@amd.com>2011-03-17 09:46:31 -0400
commit71d2a32e8e8411e160705aad88d26fb993a1faba (patch)
tree7e9ba25b87487487da8a2bd734faa148845d8a98 /drivers/edac
parent151fa71c581d1295f3f44f4882ceb17ca014dc8d (diff)
amd64_edac: Fix PCI config addressing types
Adjust argument types to the PCI config API's types. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/amd64_edac.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index e6adc73e70ca..24253326a77c 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -856,8 +856,8 @@ static void read_dct_base_mask(struct amd64_pvt *pvt)
856 prep_chip_selects(pvt); 856 prep_chip_selects(pvt);
857 857
858 for_each_chip_select(cs, 0, pvt) { 858 for_each_chip_select(cs, 0, pvt) {
859 u32 reg0 = DCSB0 + (cs * 4); 859 int reg0 = DCSB0 + (cs * 4);
860 u32 reg1 = DCSB1 + (cs * 4); 860 int reg1 = DCSB1 + (cs * 4);
861 u32 *base0 = &pvt->csels[0].csbases[cs]; 861 u32 *base0 = &pvt->csels[0].csbases[cs];
862 u32 *base1 = &pvt->csels[1].csbases[cs]; 862 u32 *base1 = &pvt->csels[1].csbases[cs];
863 863
@@ -874,8 +874,8 @@ static void read_dct_base_mask(struct amd64_pvt *pvt)
874 } 874 }
875 875
876 for_each_chip_select_mask(cs, 0, pvt) { 876 for_each_chip_select_mask(cs, 0, pvt) {
877 u32 reg0 = DCSM0 + (cs * 4); 877 int reg0 = DCSM0 + (cs * 4);
878 u32 reg1 = DCSM1 + (cs * 4); 878 int reg1 = DCSM1 + (cs * 4);
879 u32 *mask0 = &pvt->csels[0].csmasks[cs]; 879 u32 *mask0 = &pvt->csels[0].csmasks[cs];
880 u32 *mask1 = &pvt->csels[1].csmasks[cs]; 880 u32 *mask1 = &pvt->csels[1].csmasks[cs];
881 881
@@ -947,7 +947,7 @@ static u64 get_error_address(struct mce *m)
947 947
948static void read_dram_base_limit_regs(struct amd64_pvt *pvt, unsigned range) 948static void read_dram_base_limit_regs(struct amd64_pvt *pvt, unsigned range)
949{ 949{
950 u32 off = range << 3; 950 int off = range << 3;
951 951
952 amd64_read_pci_cfg(pvt->F1, DRAM_BASE_LO + off, &pvt->ranges[range].base.lo); 952 amd64_read_pci_cfg(pvt->F1, DRAM_BASE_LO + off, &pvt->ranges[range].base.lo);
953 amd64_read_pci_cfg(pvt->F1, DRAM_LIMIT_LO + off, &pvt->ranges[range].lim.lo); 953 amd64_read_pci_cfg(pvt->F1, DRAM_LIMIT_LO + off, &pvt->ranges[range].lim.lo);