fbdev: FB_OPENCORES should depend on HAS_DMA
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 21 Feb 2014 19:56:09 +0000 (20:56 +0100)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 5 Mar 2014 12:42:45 +0000 (14:42 +0200)
If NO_DMA=y:

    drivers/built-in.o: In function `ocfb_remove':
    ocfb.c:(.text+0x27fee): undefined reference to `dma_free_coherent'
    drivers/built-in.o: In function `ocfb_probe':
    ocfb.c:(.text+0x28418): undefined reference to `dma_alloc_coherent'
    ocfb.c:(.text+0x284d2): undefined reference to `dma_free_coherent'

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/Kconfig

index 22262a3a0e2df673e342fbe800526dab5983bd3a..78e2fc7a4840e7607864dcd0bfe4ba1c7927b1f1 100644 (file)
@@ -982,7 +982,7 @@ config FB_PVR2
 
 config FB_OPENCORES
        tristate "OpenCores VGA/LCD core 2.0 framebuffer support"
-       depends on FB
+       depends on FB && HAS_DMA
        select FB_CFB_FILLRECT
        select FB_CFB_COPYAREA
        select FB_CFB_IMAGEBLIT