media: imx: add VIDEO_V4L2_SUBDEV_API dependency
authorArnd Bergmann <arnd@arndb.de>
Fri, 21 Jul 2017 16:21:25 +0000 (12:21 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 8 Aug 2017 10:32:26 +0000 (06:32 -0400)
Without this, I get a build error:

drivers/staging/media/imx/imx-media-vdic.c: In function '__vdic_get_fmt':
drivers/staging/media/imx/imx-media-vdic.c:554:10: error: implicit declaration of function 'v4l2_subdev_get_try_format'; did you mean 'v4l2_subdev_notify_event'? [-Werror=implicit-function-declaration]

Fixes: e130291212df ("[media] media: Add i.MX media core driver")

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/imx/Kconfig

index 7eff50bcea39519a1ee6478924f64eeb9888b8ec..719508fcb0e9a117e8c14699d98d7d640f9354de 100644 (file)
@@ -1,6 +1,7 @@
 config VIDEO_IMX_MEDIA
        tristate "i.MX5/6 V4L2 media core driver"
        depends on MEDIA_CONTROLLER && VIDEO_V4L2 && ARCH_MXC && IMX_IPUV3_CORE
+       depends on VIDEO_V4L2_SUBDEV_API
        select V4L2_FWNODE
        ---help---
          Say yes here to enable support for video4linux media controller