dma-mapping: fix DMA_OPS dependencies
authorChristoph Hellwig <hch@lst.de>
Sat, 29 Aug 2020 08:40:28 +0000 (10:40 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 11 Sep 2020 07:09:41 +0000 (09:09 +0200)
Driver that select DMA_OPS need to depend on HAS_DMA support to
work.  The vop driver was missing that dependency, so add it, and also
add a another depends in DMA_OPS itself.  That won't fix the issue due
to how the Kconfig dependencies work, but at least produce a warning
about unmet dependencies.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
drivers/misc/mic/Kconfig
kernel/dma/Kconfig

index b9bb086785db4849814ce65d65a0249ded0a7fcf..8a7c2c5711d5f47e6dadf9b52ffb620c9e77a5c8 100644 (file)
@@ -35,6 +35,7 @@ config SCIF_BUS
 
 config VOP_BUS
        tristate "VOP Bus Driver"
+       depends on HAS_DMA
        select DMA_OPS
        help
          This option is selected by any driver which registers a
index 0ddfb5510fe45fa3f4aa44ec0eb766566a0b13a0..e7b801649f65745c6519b273a113bc794bb06ada 100644 (file)
@@ -9,6 +9,7 @@ config HAS_DMA
        default y
 
 config DMA_OPS
+       depends on HAS_DMA
        bool
 
 #