mmc: Remove depends on HAS_DMA in case of platform dependency
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 17 Apr 2018 17:49:13 +0000 (19:49 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 May 2018 13:08:43 +0000 (15:08 +0200)
commit1d6efe08c80d84b1f39845707288ffd4df239c3b
tree2a503eaeb77932aa7b01957d8c8c2c0d5e41ecf9
parenteef797ac13c08fae0f0ce7d2215d0951e884fa2d
mmc: 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: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/Kconfig