[media] enable COMPILE_TEST for ti-vbe
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 20 Aug 2014 19:41:56 +0000 (13:41 -0600)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 26 Aug 2014 21:52:17 +0000 (18:52 -0300)
Allowing COMPILE_TEST here is trivial, but there's one missing
header to be added:

drivers/media/platform/ti-vpe/vpe.c: In function ‘vpe_probe’:
drivers/media/platform/ti-vpe/vpe.c:2266:56: error: ‘SZ_32K’ undeclared (first use in this function)
  dev->base = devm_ioremap(&pdev->dev, dev->res->start, SZ_32K);
                                                        ^

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/Kconfig
drivers/media/platform/ti-vpe/vpe.c

index 66566c9..6d0a0df 100644 (file)
@@ -223,7 +223,8 @@ config VIDEO_RENESAS_VSP1
 
 config VIDEO_TI_VPE
        tristate "TI VPE (Video Processing Engine) driver"
-       depends on VIDEO_DEV && VIDEO_V4L2 && SOC_DRA7XX
+       depends on VIDEO_DEV && VIDEO_V4L2
+       depends on SOC_DRA7XX || COMPILE_TEST
        select VIDEOBUF2_DMA_CONTIG
        select V4L2_MEM2MEM_DEV
        default n
index 972f43f..773b1fb 100644 (file)
@@ -31,6 +31,7 @@
 #include <linux/slab.h>
 #include <linux/videodev2.h>
 #include <linux/log2.h>
+#include <linux/sizes.h>
 
 #include <media/v4l2-common.h>
 #include <media/v4l2-ctrls.h>