aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-02-03 14:12:02 -0500
committerChristoph Hellwig <hch@lst.de>2019-02-20 09:26:35 -0500
commitff4c25f26a71b79c70ea03b3935a1297439a8a85 (patch)
treebb278baf485553d3a73b4de530edcc2287e003a5 /include/linux/device.h
parentbe4311a262bcf29da60c1ef6b5a457fe5d9cccef (diff)
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>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index be544400acdd..c52d90348cef 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -1017,7 +1017,7 @@ struct device {
1017 1017
1018 struct list_head dma_pools; /* dma pools (if dma'ble) */ 1018 struct list_head dma_pools; /* dma pools (if dma'ble) */
1019 1019
1020#ifdef CONFIG_HAVE_GENERIC_DMA_COHERENT 1020#ifdef CONFIG_DMA_DECLARE_COHERENT
1021 struct dma_coherent_mem *dma_mem; /* internal for coherent mem 1021 struct dma_coherent_mem *dma_mem; /* internal for coherent mem
1022 override */ 1022 override */
1023#endif 1023#endif