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

ata: 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: Tejun Heo <tj@kernel.org>

authored by

Geert Uytterhoeven and committed by
Tejun Heo
d55bac27 6edf1d4c

-2
-2
drivers/ata/Kconfig
··· 398 398 399 399 config SATA_HIGHBANK 400 400 tristate "Calxeda Highbank SATA support" 401 - depends on HAS_DMA 402 401 depends on ARCH_HIGHBANK || COMPILE_TEST 403 402 help 404 403 This option enables support for the Calxeda Highbank SoC's ··· 407 408 408 409 config SATA_MV 409 410 tristate "Marvell SATA support" 410 - depends on HAS_DMA 411 411 depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ 412 412 ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST 413 413 select GENERIC_PHY