dma-mapping: improve selection of dma_declare_coherent availability
authorChristoph Hellwig <hch@lst.de>
Sun, 3 Feb 2019 19:12:02 +0000 (20:12 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 20 Feb 2019 14:26:35 +0000 (07:26 -0700)
commitff4c25f26a71b79c70ea03b3935a1297439a8a85
treebb278baf485553d3a73b4de530edcc2287e003a5
parentbe4311a262bcf29da60c1ef6b5a457fe5d9cccef
dma-mapping: improve selection of dma_declare_coherent availability

This API is primarily used through DT entries, but two architectures
and two drivers call it directly.  So instead of selecting the config
symbol for random architectures pull it in implicitly for the actual
users.  Also rename the Kconfig option to describe the feature better.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Paul Burton <paul.burton@mips.com> # MIPS
Acked-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 files changed:
arch/arc/Kconfig
arch/arm/Kconfig
arch/arm64/Kconfig
arch/csky/Kconfig
arch/mips/Kconfig
arch/riscv/Kconfig
arch/sh/Kconfig
arch/unicore32/Kconfig
arch/x86/Kconfig
drivers/mfd/Kconfig
drivers/of/Kconfig
include/linux/device.h
include/linux/dma-mapping.h
kernel/dma/Kconfig
kernel/dma/Makefile