media: platform: VIDEO_QCOM_CAMSS should depend on HAS_DMA
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 11 Sep 2017 12:35:36 +0000 (08:35 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 23 Sep 2017 18:57:21 +0000 (14:57 -0400)
commitdb6321a1af8432df983048d2dd8529525589f71d
tree81de2ff99ceb9da6808f2d8d7bfcc02a25ceeeef
parent845d6524d69b40bd6abd61dc1264a8657159aa55
media: platform: VIDEO_QCOM_CAMSS should depend on HAS_DMA

If NO_DMA=y:

    warning: (TOUCHSCREEN_SUR40 && VIDEO_TW68 && VIDEO_CX23885 && VIDEO_CX25821 && VIDEO_CX88 && VIDEO_SAA7134 && VIDEO_COBALT && VIDEO_QCOM_CAMSS) selects VIDEOBUF2_DMA_SG which has unmet direct dependencies (MEDIA_SUPPORT && HAS_DMA)

and

    ERROR: "bad_dma_ops" [drivers/media/v4l2-core/videobuf2-dma-sg.ko] undefined!
    ERROR: "bad_dma_ops" [drivers/media/platform/qcom/camss-8x16/qcom-camss.ko] undefined!

VIDEO_QCOM_CAMSS selects VIDEOBUF2_DMA_SG, which bypasses its dependency
on HAS_DMA.  Make VIDEO_QCOM_CAMSS depend on HAS_DMA to fix this.

Fixes: f5c074947f56533c ("media: camss: Enable building")

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
drivers/media/platform/Kconfig