Commit 4419617e authored by Anders Roxell's avatar Anders Roxell Committed by Mauro Carvalho Chehab

media: drivers: media: i2c: don't enable if CONFIG_DRM_I2C_ADV7511=n

CONFIG_DRM_I2C_ADV7511 and CONFIG_VIDEO_ADV7511 bind to the same
platform device, so whichever driver gets loaded first will be used on
the device. So they shouldn't be enabled at the same time.

Rework so that VIDEO_ADV7511 and VIDEO_COBALT depends on
DRM_I2C_ADV7511=n or COMPILE_TEST.
Suggested-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarAnders Roxell <anders.roxell@linaro.org>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent de7a0020
...@@ -511,6 +511,7 @@ config VIDEO_ADV7393 ...@@ -511,6 +511,7 @@ config VIDEO_ADV7393
config VIDEO_ADV7511 config VIDEO_ADV7511
tristate "Analog Devices ADV7511 encoder" tristate "Analog Devices ADV7511 encoder"
depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API
depends on DRM_I2C_ADV7511=n || COMPILE_TEST
select HDMI select HDMI
help help
Support for the Analog Devices ADV7511 video encoder. Support for the Analog Devices ADV7511 video encoder.
......
...@@ -3,7 +3,7 @@ config VIDEO_COBALT ...@@ -3,7 +3,7 @@ config VIDEO_COBALT
tristate "Cisco Cobalt support" tristate "Cisco Cobalt support"
depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API
depends on PCI_MSI && MTD_COMPLEX_MAPPINGS depends on PCI_MSI && MTD_COMPLEX_MAPPINGS
depends on GPIOLIB || COMPILE_TEST depends on (GPIOLIB && DRM_I2C_ADV7511=n) || COMPILE_TEST
depends on SND depends on SND
depends on MTD depends on MTD
select I2C_ALGOBIT select I2C_ALGOBIT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment