summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/davinci/vpbe_osd.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2018-04-05 12:31:39 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-04-17 05:11:10 -0400
commit05c90900e24be491102a6018e242ee7ca602918b (patch)
tree74c9911bae3bfc91cfe2d136fda1c7059c48cb39 /drivers/media/platform/davinci/vpbe_osd.c
parentb8952ee685505787cdc8406d04a48c1023781439 (diff)
downloadlinux-05c90900e24be491102a6018e242ee7ca602918b.tar.bz2
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>
Diffstat (limited to 'drivers/media/platform/davinci/vpbe_osd.c')
-rw-r--r--drivers/media/platform/davinci/vpbe_osd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/davinci/vpbe_osd.c b/drivers/media/platform/davinci/vpbe_osd.c
index 66449791c70c..10f2bf11edf3 100644
--- a/drivers/media/platform/davinci/vpbe_osd.c
+++ b/drivers/media/platform/davinci/vpbe_osd.c
@@ -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>