[media] ov2640: make GPIOLIB an optional dependency
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 19 Apr 2017 11:43:49 +0000 (08:43 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 19 Apr 2017 11:49:15 +0000 (08:49 -0300)
commita463ea990d2138ca93027b006be96a0324b77fe4
tree75dcca851bdfb33ee81505416e0477eb130a8a86
parent26c7e7bc50b85465c934140a5009d61551e51057
[media] ov2640: make GPIOLIB an optional dependency

As warned by kbuild test robot:
warning: (VIDEO_EM28XX_V4L2) selects VIDEO_OV2640 which has unmet direct dependencies (MEDIA_SUPPORT && VIDEO_V4L2 && I2C && GPIOLIB && MEDIA_CAMERA_SUPPORT)

The em28xx driver can use ov2640, but it doesn't depend
(or use) the GPIOLIB in order to power off/on the sensor.

So, as we want to allow both usages with and without
GPIOLIB, make its dependency optional.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/Kconfig
drivers/media/i2c/ov2640.c