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

mailbox: Remove depends on HAS_DMA in case of platform dependency

Remove dependencies on HAS_DMA where a Kconfig symbol depends on another
symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST".
In most cases this other symbol is an architecture or platform specific
symbol, or PCI.

Generic symbols and drivers without platform dependencies keep their
dependencies on HAS_DMA, to prevent compiling subsystems or drivers that
cannot work anyway.

This simplifies the dependencies, and allows to improve compile-testing.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Mark Brown <broonie@kernel.org>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>

authored by

Geert Uytterhoeven and committed by
Jassi Brar
19ed70c0 7fbb6157

-2
-2
drivers/mailbox/Kconfig
··· 162 162 config BCM_PDC_MBOX 163 163 tristate "Broadcom FlexSparx DMA Mailbox" 164 164 depends on ARCH_BCM_IPROC || COMPILE_TEST 165 - depends on HAS_DMA 166 165 help 167 166 Mailbox implementation for the Broadcom FlexSparx DMA ring manager, 168 167 which provides access to various offload engines on Broadcom ··· 171 172 tristate "Broadcom FlexRM Mailbox" 172 173 depends on ARM64 173 174 depends on ARCH_BCM_IPROC || COMPILE_TEST 174 - depends on HAS_DMA 175 175 select GENERIC_MSI_IRQ_DOMAIN 176 176 default m if ARCH_BCM_IPROC 177 177 help