summaryrefslogtreecommitdiffstats
path: root/drivers/media/Kconfig
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-07 09:51:17 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-08 06:06:49 -0500
commit883273053607c75264d8d7bc0ecc868bb26012c7 (patch)
treec0558bb920a3001e9a31978281c2ffb0ec3a19aa /drivers/media/Kconfig
parentfce61d1dfd5b38529792898ba11a25e296e6d069 (diff)
downloadlinux-stable-883273053607c75264d8d7bc0ecc868bb26012c7.tar.gz
linux-stable-883273053607c75264d8d7bc0ecc868bb26012c7.tar.bz2
linux-stable-883273053607c75264d8d7bc0ecc868bb26012c7.zip
media: Kconfig: fix DVB dependencies
If I2C is present and it is module, the DVB core should also be a module, otherwise build will now fail with: drivers/media/dvb-core/dvbdev.o: In function `dvb_module_probe': drivers/media/dvb-core/dvbdev.c:965: undefined reference to `i2c_new_device' drivers/media/dvb-core/dvbdev.c:972: undefined reference to `i2c_unregister_device' Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/Kconfig')
-rw-r--r--drivers/media/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig
index 372c074bb1b9..29609661cf3d 100644
--- a/drivers/media/Kconfig
+++ b/drivers/media/Kconfig
@@ -141,6 +141,7 @@ config DVB_CORE
tristate
depends on MEDIA_SUPPORT
depends on MEDIA_DIGITAL_TV_SUPPORT
+ depends on (I2C || I2C=n)
default y
select CRC32