Skip to contentSkip to conversation

uio: UIO_PRUSS should depend on HAS_DMA

PATCH New Geert Uytterhoeven 1 participant 1 message Jun 29, 2015 Userspace I/O (UIO)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uio: UIO_PRUSS should depend on HAS_DMA

If NO_DMA=y:

ERROR: "dma_alloc_coherent" [drivers/uio/uio_pruss.ko] undefined!
ERROR: "dma_free_coherent" [drivers/uio/uio_pruss.ko] undefined!

Add a dependency on HAS_DMA to fix this.

---
 drivers/uio/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/uio/Kconfig +1 -1
index 48fb1d983f6c6adb..52c98ce1b6febf02 100644
@@ -127,7 +127,7 @@ config UIO_FSL_ELBC_GPCM_NETX5152
 config UIO_PRUSS
 	tristate "Texas Instruments PRUSS driver"
 	select GENERIC_ALLOCATOR
-	depends on HAS_IOMEM
+	depends on HAS_IOMEM && HAS_DMA
 	help
 	  PRUSS driver for OMAPL138/DA850/AM18XX devices
 	  PRUSS driver requires user space components, examples and user space
Signature · 1 line
1.9.1