Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05c90900 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

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: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent b8952ee6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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
+3 −0
Original line number Diff line number Diff line
@@ -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>
+2 −0
Original line number Diff line number Diff line
@@ -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>
+3 −0
Original line number Diff line number Diff line
@@ -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>