diff options
author | Matt Redfearn <matt.redfearn@mips.com> | 2018-03-01 04:58:12 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-03-13 12:47:47 -0400 |
commit | 79ca239a68f8f006ed872a023d97fbadf9d1577d (patch) | |
tree | 3d2bcb3a97a527cb7a58f717eb9a6c07cf5e962b | |
parent | a1854fae1414dd8edfff4857fd26c3e355d43e19 (diff) |
bcma: Prevent build of PCI host features in module
Attempting to build bcma.ko with BCMA_DRIVER_PCI_HOSTMODE=y results in
a build error due to use of symbols not exported from vmlinux:
ERROR: "pcibios_enable_device" [drivers/bcma/bcma.ko] undefined!
ERROR: "register_pci_controller" [drivers/bcma/bcma.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:92: __modpost] Error 1
To prevent this, don't allow the host mode feature to be built if
CONFIG_BCMA=m
Signed-off-by: Matt Redfearn <matt.redfearn@mips.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r-- | drivers/bcma/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bcma/Kconfig b/drivers/bcma/Kconfig index ba8acca036df..cb0f1aad20b7 100644 --- a/drivers/bcma/Kconfig +++ b/drivers/bcma/Kconfig | |||
@@ -55,7 +55,7 @@ config BCMA_DRIVER_PCI | |||
55 | 55 | ||
56 | config BCMA_DRIVER_PCI_HOSTMODE | 56 | config BCMA_DRIVER_PCI_HOSTMODE |
57 | bool "Driver for PCI core working in hostmode" | 57 | bool "Driver for PCI core working in hostmode" |
58 | depends on MIPS && BCMA_DRIVER_PCI && PCI_DRIVERS_LEGACY | 58 | depends on MIPS && BCMA_DRIVER_PCI && PCI_DRIVERS_LEGACY && BCMA = y |
59 | help | 59 | help |
60 | PCI core hostmode operation (external PCI bus). | 60 | PCI core hostmode operation (external PCI bus). |
61 | 61 | ||