aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/arm/mach-iop32x
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-11-24 16:41:15 +0100
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2021-12-07 17:36:16 +0000
commit6198461ef509356e7f0fe5b04e88009aa698a065 (patch)
treef96569c80aa10c7a3839e59e1cb90fe5c79b301c /arch/arm/mach-iop32x
parentPCI: mvebu: Remove custom mvebu_pci_host_probe() function (diff)
downloadwireguard-linux-6198461ef509356e7f0fe5b04e88009aa698a065.tar.xz
wireguard-linux-6198461ef509356e7f0fe5b04e88009aa698a065.zip
arm: ioremap: Replace pci_ioremap_io() usage by pci_remap_iospace()
Replace all usage of ARM specific pci_ioremap_io() function by standard PCI core API function pci_remap_iospace() in all drivers and ARM mach code. Link: https://lore.kernel.org/r/20211124154116.916-5-pali@kernel.org Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'arch/arm/mach-iop32x')
-rw-r--r--arch/arm/mach-iop32x/pci.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-iop32x/pci.c b/arch/arm/mach-iop32x/pci.c
index ab0010dc3145..7a215d2ee7e2 100644
--- a/arch/arm/mach-iop32x/pci.c
+++ b/arch/arm/mach-iop32x/pci.c
@@ -185,6 +185,7 @@ iop3xx_pci_abort(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
int iop3xx_pci_setup(int nr, struct pci_sys_data *sys)
{
struct resource *res;
+ struct resource realio;
if (nr != 0)
return 0;
@@ -206,7 +207,9 @@ int iop3xx_pci_setup(int nr, struct pci_sys_data *sys)
pci_add_resource_offset(&sys->resources, res, sys->mem_offset);
- pci_ioremap_io(0, IOP3XX_PCI_LOWER_IO_PA);
+ realio.start = 0;
+ realio.end = realio.start + SZ_64K - 1;
+ pci_remap_iospace(&realio, IOP3XX_PCI_LOWER_IO_PA);
return 1;
}