[media] media: Kconfig: add dependency of HAS_DMA
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Wed, 30 Dec 2015 13:26:03 +0000 (11:26 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 25 Jan 2016 12:32:47 +0000 (10:32 -0200)
commit420520766a796d36076111139ba1e4fb1aadeadd
tree5cba4a2ceca1b4aa008859a2d5492ab0c5ce8313
parenta13ddcae4f0bc5e1de761895d0cae2010e1934af
[media] media: Kconfig: add dependency of HAS_DMA

The build of m32r allmodconfig fails with the error:
drivers/media/v4l2-core/videobuf2-dma-contig.c:484:2:
error: implicit declaration of function 'dma_get_cache_alignment'

The build of videobuf2-dma-contig.c depends on HAS_DMA and it is
correctly mentioned in the Kconfig but the symbol VIDEO_STI_BDISP also
selects VIDEOBUF2_DMA_CONTIG, so it is trying to compile
videobuf2-dma-contig.c even though HAS_DMA is not defined.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/Kconfig