diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2013-06-17 04:09:00 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-07-01 09:10:59 -0400 |
commit | 78857614104a26cdada4c53eea104752042bf5a1 (patch) | |
tree | 54776fd57a9da8e528e8f706140d895c9097d81d /arch/mips/Kconfig | |
parent | 78276207a70e805cc022364218eefb8aa05ea647 (diff) |
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>
Diffstat (limited to 'arch/mips/Kconfig')
-rw-r--r-- | arch/mips/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index ba63cdbd13fe..3a3e54cc7703 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -28,6 +28,7 @@ config MIPS | |||
28 | select HAVE_GENERIC_HARDIRQS | 28 | select HAVE_GENERIC_HARDIRQS |
29 | select GENERIC_IRQ_PROBE | 29 | select GENERIC_IRQ_PROBE |
30 | select GENERIC_IRQ_SHOW | 30 | select GENERIC_IRQ_SHOW |
31 | select GENERIC_PCI_IOMAP | ||
31 | select HAVE_ARCH_JUMP_LABEL | 32 | select HAVE_ARCH_JUMP_LABEL |
32 | select ARCH_WANT_IPC_PARSE_VERSION | 33 | select ARCH_WANT_IPC_PARSE_VERSION |
33 | select IRQ_FORCED_THREADING | 34 | select IRQ_FORCED_THREADING |
@@ -2391,7 +2392,6 @@ config PCI | |||
2391 | bool "Support for PCI controller" | 2392 | bool "Support for PCI controller" |
2392 | depends on HW_HAS_PCI | 2393 | depends on HW_HAS_PCI |
2393 | select PCI_DOMAINS | 2394 | select PCI_DOMAINS |
2394 | select GENERIC_PCI_IOMAP | ||
2395 | select NO_GENERIC_PCI_IOPORT_MAP | 2395 | select NO_GENERIC_PCI_IOPORT_MAP |
2396 | help | 2396 | help |
2397 | Find out whether you have a PCI motherboard. PCI is the name of a | 2397 | Find out whether you have a PCI motherboard. PCI is the name of a |