From 549d68f7e895d704a83c2f97b37b4b63f6941689 Mon Sep 17 00:00:00 2001 From: Ley Foon Tan Date: Mon, 4 Mar 2019 14:28:03 +0800 Subject: [PATCH] PCI: altera: Fixed sparse warning warning: incorrect type in initializer (different address spaces) Signed-off-by: Ley Foon Tan --- drivers/pci/controller/pcie-altera.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/controller/pcie-altera.c b/drivers/pci/controller/pcie-altera.c index 14e5d9524142..10e2f9f03888 100644 --- a/drivers/pci/controller/pcie-altera.c +++ b/drivers/pci/controller/pcie-altera.c @@ -367,7 +367,7 @@ static int tlp_cfg_dword_write(struct altera_pcie *pcie, u8 bus, u32 devfn, static int s10_rp_read_cfg(struct altera_pcie *pcie, int where, int size, u32 *value) { - void *addr = S10_RP_CFG_ADDR(pcie, where); + void __iomem *addr = S10_RP_CFG_ADDR(pcie, where); switch (size) { case 1: @@ -387,7 +387,7 @@ static int s10_rp_read_cfg(struct altera_pcie *pcie, int where, static int s10_rp_write_cfg(struct altera_pcie *pcie, u8 busno, int where, int size, u32 value) { - void *addr = S10_RP_CFG_ADDR(pcie, where); + void __iomem *addr = S10_RP_CFG_ADDR(pcie, where); switch (size) { case 1: -- 2.19.0