Commit a4afb3ed authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] Kconfig: fix breakages when DVB_CORE is not selected

On some weird randconfigs, it is possible to select DVB
drivers, without having the DVB_CORE:

CONFIG_DVB_AU8522=m
CONFIG_DVB_AU8522_V4L=m
CONFIG_DVB_TUNER_DIB0090=m

This was never supposed to work, but changeset 22a613e8
("[media] dvb_frontend: merge duplicate dvb_tuner_ops.release implementations")
caused it to be exposed:

   drivers/built-in.o: In function `fc0011_attach':
   (.text+0x1598fb): undefined reference to `dvb_tuner_simple_release'
   drivers/built-in.o:(.rodata+0x55e58): undefined reference to `dvb_tuner_simple_release'
   drivers/built-in.o:(.rodata+0x57398): undefined reference to `dvb_tuner_simple_release'

Fixes: 22a613e8 ("[media] dvb_frontend: merge duplicate dvb_tuner_ops.release implementations")
Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent c044170f
...@@ -115,7 +115,7 @@ config MEDIA_CONTROLLER ...@@ -115,7 +115,7 @@ config MEDIA_CONTROLLER
config MEDIA_CONTROLLER_DVB config MEDIA_CONTROLLER_DVB
bool "Enable Media controller for DVB (EXPERIMENTAL)" bool "Enable Media controller for DVB (EXPERIMENTAL)"
depends on MEDIA_CONTROLLER depends on MEDIA_CONTROLLER && DVB_CORE
---help--- ---help---
Enable the media controller API support for DVB. Enable the media controller API support for DVB.
......
...@@ -642,7 +642,7 @@ config DVB_S5H1409 ...@@ -642,7 +642,7 @@ config DVB_S5H1409
to support this frontend. to support this frontend.
config DVB_AU8522 config DVB_AU8522
depends on I2C depends on DVB_CORE && I2C
tristate tristate
config DVB_AU8522_DTV config DVB_AU8522_DTV
...@@ -656,7 +656,7 @@ config DVB_AU8522_DTV ...@@ -656,7 +656,7 @@ config DVB_AU8522_DTV
config DVB_AU8522_V4L config DVB_AU8522_V4L
tristate "Auvitek AU8522 based ATV demod" tristate "Auvitek AU8522 based ATV demod"
depends on VIDEO_V4L2 && I2C depends on VIDEO_V4L2 && DVB_CORE && I2C
select DVB_AU8522 select DVB_AU8522
default m if !MEDIA_SUBDRV_AUTOSELECT default m if !MEDIA_SUBDRV_AUTOSELECT
help help
...@@ -722,7 +722,7 @@ config DVB_PLL ...@@ -722,7 +722,7 @@ config DVB_PLL
config DVB_TUNER_DIB0070 config DVB_TUNER_DIB0070
tristate "DiBcom DiB0070 silicon base-band tuner" tristate "DiBcom DiB0070 silicon base-band tuner"
depends on I2C depends on DVB_CORE && I2C
default m if !MEDIA_SUBDRV_AUTOSELECT default m if !MEDIA_SUBDRV_AUTOSELECT
help help
A driver for the silicon baseband tuner DiB0070 from DiBcom. A driver for the silicon baseband tuner DiB0070 from DiBcom.
...@@ -731,7 +731,7 @@ config DVB_TUNER_DIB0070 ...@@ -731,7 +731,7 @@ config DVB_TUNER_DIB0070
config DVB_TUNER_DIB0090 config DVB_TUNER_DIB0090
tristate "DiBcom DiB0090 silicon base-band tuner" tristate "DiBcom DiB0090 silicon base-band tuner"
depends on I2C depends on DVB_CORE && I2C
default m if !MEDIA_SUBDRV_AUTOSELECT default m if !MEDIA_SUBDRV_AUTOSELECT
help help
A driver for the silicon baseband tuner DiB0090 from DiBcom. A driver for the silicon baseband tuner DiB0090 from DiBcom.
...@@ -879,5 +879,6 @@ comment "Tools to develop new frontends" ...@@ -879,5 +879,6 @@ comment "Tools to develop new frontends"
config DVB_DUMMY_FE config DVB_DUMMY_FE
tristate "Dummy frontend driver" tristate "Dummy frontend driver"
depends on DVB_CORE
default n default n
endmenu endmenu
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