Staging: most: MOST and MOSTCORE should depend on HAS_DMA
Subsystems (2)
PATCH 1/1 Staging: most: MOST and MOSTCORE should depend on HAS_DMA
If NO_DMA=y:
ERROR: "dma_free_coherent" [drivers/staging/most/mostcore/mostcore.ko] undefined!
ERROR: "dma_alloc_coherent" [drivers/staging/most/mostcore/mostcore.ko] undefined!
As all MOST sub drivers use DMA functionality, add a dependency on HAS_DMA to MOSTCORE, and to MOST, which selects MOSTCORE.
Signed-off-by Geert Uytterhoeven <[email protected]>
--- drivers/staging/most/Kconfig | 1 + drivers/staging/most/mostcore/Kconfig | 1 + 2 files changed, 2 insertions(+)
drivers/staging/most/Kconfig +1 -0
@@ -1,5 +1,6 @@ menuconfig MOST tristate "MOST driver" + depends on HAS_DMA select MOSTCORE default n ---help---
drivers/staging/most/mostcore/Kconfig +1 -0
@@ -4,6 +4,7 @@ config MOSTCORE tristate "MOST Core" + depends on HAS_DMA ---help--- Say Y here if you want to enable MOST support.
Signature · 1 line
1.9.1
Quoted 9 lines · On Tue, 1 Sep 2015 22:05:58 +0200 Geert Uytterhoeven <[email protected]>…
If NO_DMA=y:
ERROR: "
dma_free_coherent" [drivers/staging/most/mostcore/mostcore.ko] undefined!
ERROR: "dma_alloc_coherent" [drivers/staging/most/mostcore/mostcore.ko] undefined!As all MOST sub drivers use DMA functionality, add a dependency on
HAS_DMAto MOSTCORE, and to MOST, which selects MOSTCORE.Signed-off-by Geert Uytterhoeven <[email protected]>
Acked-by Christian Gromm <[email protected]>
Quoted 28 lines
--- drivers/staging/most/Kconfig | 1 + drivers/staging/most/mostcore/Kconfig | 1 + 2 files changed, 2 insertions(+)drivers/staging/most/Kconfig +1
-0@@ -1,5 +1,6 @@ menuconfig MOST tristate "MOST driver" + depends on HAS_DMA select MOSTCORE default n ---help---drivers/staging/most/mostcore/Kconfig +1
-0@@ -4,6 +4,7 @@ config MOSTCORE tristate "MOST Core" + depends on HAS_DMA ---help--- Say Y here if you want to enable MOST support.