diff options
| author | Markos Chandras <markos.chandras@imgtec.com> | 2013-06-17 04:09:00 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-15 01:59:10 -0400 |
| commit | 5954bd0f29212194f0beb6dab03f9c26a482c560 (patch) | |
| tree | dd94debeecd9c6310b154b350ef700777dc4c364 /arch/mips/include | |
| parent | ddb2a2d9e0b2c87696d1a81b57edf545e201c143 (diff) | |
MIPS: Expose missing pci_io{map,unmap} declarations
commit 78857614104a26cdada4c53eea104752042bf5a1 upstream.
The GENERIC_PCI_IOMAP does not depend on CONFIG_PCI so move
it to the CONFIG_MIPS symbol so it's always selected for MIPS.
This fixes the missing pci_iomap declaration for MIPS.
Moreover, the pci_iounmap function was not defined in the
io.h header file if the CONFIG_PCI symbol is not set,
but it should since MIPS is not using CONFIG_GENERIC_IOMAP.
This fixes the following problem on a allyesconfig:
drivers/net/ethernet/3com/3c59x.c:1031:2: error: implicit declaration of
function 'pci_iomap' [-Werror=implicit-function-declaration]
drivers/net/ethernet/3com/3c59x.c:1044:3: error: implicit declaration of
function 'pci_iounmap' [-Werror=implicit-function-declaration]
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Acked-by: Steven J. Hill <Steven.Hill@imgtec.com>
Patchwork: https://patchwork.linux-mips.org/patch/5478/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/mips/include')
| -rw-r--r-- | arch/mips/include/asm/io.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h index b7e59853fd33..b84e1fb3fabf 100644 --- a/arch/mips/include/asm/io.h +++ b/arch/mips/include/asm/io.h | |||
| @@ -170,6 +170,11 @@ static inline void * isa_bus_to_virt(unsigned long address) | |||
| 170 | extern void __iomem * __ioremap(phys_t offset, phys_t size, unsigned long flags); | 170 | extern void __iomem * __ioremap(phys_t offset, phys_t size, unsigned long flags); |
| 171 | extern void __iounmap(const volatile void __iomem *addr); | 171 | extern void __iounmap(const volatile void __iomem *addr); |
| 172 | 172 | ||
| 173 | #ifndef CONFIG_PCI | ||
| 174 | struct pci_dev; | ||
| 175 | static inline void pci_iounmap(struct pci_dev *dev, void __iomem *addr) {} | ||
| 176 | #endif | ||
| 177 | |||
| 173 | static inline void __iomem * __ioremap_mode(phys_t offset, unsigned long size, | 178 | static inline void __iomem * __ioremap_mode(phys_t offset, unsigned long size, |
| 174 | unsigned long flags) | 179 | unsigned long flags) |
| 175 | { | 180 | { |
