linux/drivers/media/usb
Arnd Bergmann 79962a7a1d media: cxusb-analog: fix V4L2 dependency
[ Upstream commit 1a55caf010 ]

CONFIG_DVB_USB_CXUSB_ANALOG is a 'bool' symbol with a dependency on the
tristate CONFIG_VIDEO_V4L2, which means it can be enabled as =y even
when its dependency is =m. This leads to a link failure:

drivers/media/usb/dvb-usb/cxusb-analog.o: In function `cxusb_medion_analog_init':
cxusb-analog.c:(.text+0x92): undefined reference to `v4l2_subdev_call_wrappers'
drivers/media/usb/dvb-usb/cxusb-analog.o: In function `cxusb_medion_register_analog':
cxusb-analog.c:(.text+0x466): undefined reference to `v4l2_device_register'
cxusb-analog.c:(.text+0x4c3): undefined reference to `v4l2_i2c_new_subdev'
cxusb-analog.c:(.text+0x4fb): undefined reference to `v4l2_subdev_call_wrappers'
...

Change the dependency only disallow the analog portion of the driver
in that configuration.

Fixes: e478d40540 ("media: cxusb: add analog mode support for Medion MD95700")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-08-19 08:16:07 +02:00
..
airspy
as102
au0828
b2c2 media: flexcop-usb: fix endpoint sanity check 2020-04-01 11:02:15 +02:00
cpia2
cx231xx
dvb-usb media: cxusb-analog: fix V4L2 dependency 2020-08-19 08:16:07 +02:00
dvb-usb-v2
em28xx
go7007 media: go7007: fix a miss of snd_card_free 2020-06-22 09:31:18 +02:00
gspca media: xirlink_cit: add missing descriptor sanity checks 2020-04-01 11:02:18 +02:00
hackrf
hdpvr
msi2500
pulse8-cec
pvrusb2
pwc
rainshadow-cec
s2255
siano
stk1160
stkwebcam
tm6000
ttusb-budget
ttusb-dec
usbtv media: usbtv: fix control-message timeouts 2020-04-01 11:02:16 +02:00
usbvision
uvc media: uvcvideo: Add a quirk to force GEO GC6500 Camera bits-per-pixel value 2020-02-24 08:36:56 +01:00
zr364xx
Kconfig
Makefile