uio: UIO_PRUSS should depend on HAS_DMA
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 29 Jun 2015 07:12:38 +0000 (09:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2015 20:25:59 +0000 (13:25 -0700)
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.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/Kconfig

index 48fb1d983f6c6adb00480bc4f6abb3cb229f4d65..52c98ce1b6febf02df27ae4be8c031db8d14acc3 100644 (file)
@@ -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