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)
commit882164a4a928bcaa53280940436ca476e6b1db8e
tree93c01ce3385992abd2c8bc6a00fb9063a7efac33
parent985324a16efb5a1b002c057ff457e28fb3f7480e
ssb: Prevent build of PCI host features in module

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