diff options
author | Paul Burton <paul.burton@mips.com> | 2018-08-30 00:54:00 +0300 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2018-08-30 19:41:16 +0300 |
commit | b962aeb022051915c26dcaba97d3ed0883bef9f5 (patch) | |
tree | c9ae12a1d25d7988dd937badb7ed11a057ac45b6 /arch/mips/lib/iomap-pci.c | |
parent | e245767abf2797f1581f94e48db7f6184e14ebed (diff) | |
download | linux-b962aeb022051915c26dcaba97d3ed0883bef9f5.tar.xz |
MIPS: Use GENERIC_IOMAP
MIPS has a copy of lib/iomap.c with minor alterations, none of which are
necessary given appropriate definitions of PIO_OFFSET, PIO_MASK &
PIO_RESERVED. Provide such definitions, select GENERIC_IOMAP & remove
arch/mips/lib/iomap.c to cut back on the needless duplication.
The one change this does make is to our mmio_{in,out}s[bwl] functions,
which began to deviate from their generic counterparts with commit
0845bb721ebb ("MIPS: iomap: Use __mem_{read,write}{b,w,l} for MMIO"). I
suspect that this commit was incorrect, and that the SEAD-3 platform
should have instead selected CONFIG_SWAP_IO_SPACE. Since the SEAD-3
platform code is now gone & the board is instead supported by the
generic platform (CONFIG_MIPS_GENERIC) which selects
CONFIG_SWAP_IO_SPACE anyway, this shouldn't be a problem any more.
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/20342/
Cc: linux-mips@linux-mips.org
Diffstat (limited to 'arch/mips/lib/iomap-pci.c')
-rw-r--r-- | arch/mips/lib/iomap-pci.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/mips/lib/iomap-pci.c b/arch/mips/lib/iomap-pci.c index 4850509c5534..210f5a95ecb1 100644 --- a/arch/mips/lib/iomap-pci.c +++ b/arch/mips/lib/iomap-pci.c @@ -44,10 +44,3 @@ void __iomem *__pci_ioport_map(struct pci_dev *dev, } #endif /* CONFIG_PCI_DRIVERS_LEGACY */ - -void pci_iounmap(struct pci_dev *dev, void __iomem * addr) -{ - iounmap(addr); -} - -EXPORT_SYMBOL(pci_iounmap); |