Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bcma: Allow selection of this driver when COMPILE_TEST=y

This allows us to increase compile-test coverage without having to build
a kernel for MIPS. That's particularly interesting for subsystem
maintainers that want to test as many drivers as possible in a single
build.

We also add a dependency on HAS_IOMEM in BCMA_HOST_SOC to make sure the
driver is not selected when the arch does not implement IO accessors.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Acked-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

authored by

Boris Brezillon and committed by
Miquel Raynal
a58d0b4d d4de09e5

+2 -1
+2 -1
drivers/bcma/Kconfig
··· 30 30 31 31 config BCMA_HOST_SOC 32 32 bool "Support for BCMA in a SoC" 33 + depends on HAS_IOMEM 33 34 help 34 35 Host interface for a Broadcom AIX bus directly mapped into 35 36 the memory. This only works with the Broadcom SoCs from the ··· 62 61 63 62 config BCMA_DRIVER_MIPS 64 63 bool "BCMA Broadcom MIPS core driver" 65 - depends on MIPS 64 + depends on MIPS || COMPILE_TEST 66 65 help 67 66 Driver for the Broadcom MIPS core attached to Broadcom specific 68 67 Advanced Microcontroller Bus.