ssb: Prevent build of PCI host features in module
authorMatt Redfearn <matt.redfearn@mips.com>
Fri, 12 Jan 2018 14:25:59 +0000 (14:25 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 28 Feb 2018 14:38:06 +0000 (16:38 +0200)
Attempting to build ssb.ko with CONFIG_SSB_DRIVER_PCICORE=y results in
a build error due to use of symbols not exported from vmlinux:

ERROR: "pcibios_enable_device" [drivers/ssb/ssb.ko] undefined!
ERROR: "register_pci_controller" [drivers/ssb/ssb.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_SSB=m

Signed-off-by: Matt Redfearn <matt.redfearn@mips.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/ssb/Kconfig

index b3f5cae98ea620cb1726a41fef19979d4811ee0a..9371651d801776702dd34cde1d04d3501f1c54ef 100644 (file)
@@ -117,7 +117,7 @@ config SSB_SERIAL
 
 config SSB_DRIVER_PCICORE_POSSIBLE
        bool
-       depends on SSB_PCIHOST
+       depends on SSB_PCIHOST && SSB = y
        default y
 
 config SSB_DRIVER_PCICORE