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)
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

index f461460..f15f648 100644 (file)
@@ -1066,6 +1066,7 @@ config MFD_SI476X_CORE
 
 config MFD_SM501
        tristate "Silicon Motion SM501"
+       depends on HAS_DMA
         ---help---
          This is the core driver for the Silicon Motion SM501 multimedia
          companion chip. This device is a multifunction device which may