]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Expose missing pci_io{map,unmap} declarations
authorMarkos Chandras <markos.chandras@imgtec.com>
Mon, 17 Jun 2013 08:09:00 +0000 (08:09 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 27 Jun 2013 13:57:34 +0000 (15:57 +0200)
commit91a041ef5dcb0a9c73aad4ffb4b7b49ff61e578e
tree8ca9d3f51f76751b01fe77a5d168f6a0423a4681
parentc470c4d844ab536052660892c7a30ea44d373fb9
MIPS: Expose missing pci_io{map,unmap} declarations

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>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5478/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Kconfig
arch/mips/include/asm/io.h