mfd/sm501: depend on HAS_DMA
authorChristoph Hellwig <hch@lst.de>
Sun, 3 Feb 2019 19:11:53 +0000 (20:11 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 13 Feb 2019 18:18:15 +0000 (19:18 +0100)
commitd0377392201b4cab670dafd092b17164f49d8b8e
treecd32e0592a3035bae01364f167ff97860f492836
parentdc2acded38957dfa6b7b7e0203b4b8cb8d818ce6
mfd/sm501: depend on HAS_DMA

Currently the sm501 mfd driver can be compiled without any dependencies,
but through the use of dma_declare_coherent it really depends on
having DMA and iomem support.  Normally we don't explicitly require DMA
support as we have stubs for it if on UML, but in this case the driver
selects support for dma_declare_coherent and thus also requires
memmap support.  Guard this by an explicit dependency.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/Kconfig