Skip to content

Commit

Permalink
media: davinci: allow build vpbe_display with COMPILE_TEST
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Apr 17, 2018
1 parent b8952ee commit 05c9090
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/platform/davinci/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions drivers/media/platform/davinci/vpbe_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 2 additions & 0 deletions drivers/media/platform/davinci/vpbe_osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 3 additions & 0 deletions drivers/media/platform/davinci/vpbe_venc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 05c9090

Please sign in to comment.