Skip to content

Commit

Permalink
bcma: Allow selection of this driver when COMPILE_TEST=y
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Kalle Valo <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
  • Loading branch information
Boris Brezillon authored and miquelraynal committed Jul 18, 2018
1 parent d4de09e commit a58d0b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/bcma/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ config BCMA_HOST_PCI

config BCMA_HOST_SOC
bool "Support for BCMA in a SoC"
depends on HAS_IOMEM
help
Host interface for a Broadcom AIX bus directly mapped into
the memory. This only works with the Broadcom SoCs from the
Expand Down Expand Up @@ -61,7 +62,7 @@ config BCMA_DRIVER_PCI_HOSTMODE

config BCMA_DRIVER_MIPS
bool "BCMA Broadcom MIPS core driver"
depends on MIPS
depends on MIPS || COMPILE_TEST
help
Driver for the Broadcom MIPS core attached to Broadcom specific
Advanced Microcontroller Bus.
Expand Down

0 comments on commit a58d0b4

Please sign in to comment.