OSDN Git Service

staging: fbtft: Disable DMA support if DMA is not available
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 24 Apr 2015 07:44:15 +0000 (09:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Apr 2015 14:51:21 +0000 (16:51 +0200)
commit8e1a4c7f718e5de5019cb5ce6ada657ce1b5ea89
tree76ef68c2905bbdd2573a6944b62adfb08b9bd417
parenta94ac1590b28245225300aaca7ea2de4f3f1e296
staging: fbtft: Disable DMA support if DMA is not available

If NO_DMA=y:

    drivers/built-in.o: In function `fbtft_framebuffer_alloc':
    (.text+0xb53cae): undefined reference to `dmam_alloc_coherent'

As DMA support is already optional, make it depend on HAS_DMA.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fbtft-core.c