Fix build error caused by the VIDEO_V4L2_SUBDEV_API symbol not being enabled
in Kconfig option by making the driver depend on it.

Builds configured without the VIDEO_V4L2_SUBDEV_API symbol fail with:
drivers/media/i2c/mt9v111.c:801:10: error: implicit declaration of function
'v4l2_subdev_get_try_format';

Fixes: aab7ed1c ("media: i2c: Add driver for Aptina MT9V111")
Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org>
---
 drivers/media/i2c/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig
index 82af974..422c586 100644
--- a/drivers/media/i2c/Kconfig
+++ b/drivers/media/i2c/Kconfig
@@ -876,7 +876,7 @@ config VIDEO_MT9V032
 config VIDEO_MT9V111
        tristate "Aptina MT9V111 sensor support"
        depends on I2C && VIDEO_V4L2
-       depends on MEDIA_CAMERA_SUPPORT
+       depends on MEDIA_CAMERA_SUPPORT && VIDEO_V4L2_SUBDEV_API
        help
          This is a Video4Linux2 sensor driver for the Aptina/Micron
          MT9V111 sensor.
--
2.7.4

Reply via email to