media: davinci: allow build vpbe_display with COMPILE_TEST

Except for some includes (with doesn't seem to be used), this
driver builds fine with COMPILE_TEST.

So, add checks there to avoid building it if ARCH_DAVINCI
is not selected.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
Mauro Carvalho Chehab 2018-04-05 12:31:39 -04:00
parent b8952ee685
commit 05c90900e2
4 changed files with 10 additions and 1 deletions

View file

@ -82,7 +82,8 @@ config VIDEO_DM365_ISIF
config VIDEO_DAVINCI_VPBE_DISPLAY
tristate "TI DaVinci VPBE V4L2-Display driver"
depends on VIDEO_V4L2 && ARCH_DAVINCI
depends on VIDEO_V4L2
depends on ARCH_DAVINCI || COMPILE_TEST
depends on HAS_DMA
depends on I2C
select VIDEOBUF2_DMA_CONTIG

View file

@ -26,7 +26,10 @@
#include <linux/slab.h>
#include <asm/pgtable.h>
#ifdef CONFIG_ARCH_DAVINCI
#include <mach/cputype.h>
#endif
#include <media/v4l2-dev.h>
#include <media/v4l2-common.h>

View file

@ -24,8 +24,10 @@
#include <linux/clk.h>
#include <linux/slab.h>
#ifdef CONFIG_ARCH_DAVINCI
#include <mach/cputype.h>
#include <mach/hardware.h>
#endif
#include <media/davinci/vpss.h>
#include <media/v4l2-device.h>

View file

@ -21,8 +21,11 @@
#include <linux/videodev2.h>
#include <linux/slab.h>
#ifdef CONFIG_ARCH_DAVINCI
#include <mach/hardware.h>
#include <mach/mux.h>
#endif
#include <linux/platform_data/i2c-davinci.h>
#include <linux/io.h>