linux/drivers/media/usb
Arnd Bergmann 0d1270df83 [media] zd1301: fix building interface driver without demodulator
If the USB driver is enabled but the demodulator is not, we get a link error:

ERROR: "zd1301_demod_get_dvb_frontend" [drivers/media/usb/dvb-usb-v2/zd1301.ko] undefined!
ERROR: "zd1301_demod_get_i2c_adapter" [drivers/media/usb/dvb-usb-v2/zd1301.ko] undefined!

Such a configuration obviously makes no sense, but we should not fail
the build.  This tries to mimic what we have for other drivers by turning
the build failure into a runtime failure.

Alternatively we could use an unconditional 'select' or 'depends on' to enforce
a sane configuration.

Fixes: 47d65372b3 ("[media] zd1301_demod: ZyDAS ZD1301 DVB-T demodulator driver")
Fixes: 992b39872b ("[media] zd1301: ZyDAS ZD1301 DVB USB interface driver")

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-02-08 11:59:39 -02:00
..
airspy [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
as102 media: usb: as102: as102_usb_drv: don't print error when allocating urb fails 2016-08-30 19:13:53 +02:00
au0828 [media] media: Protect enable_source and disable_source handler code paths 2017-02-03 07:39:35 -02:00
b2c2 [media] b2c2: don't break long lines 2016-10-21 09:38:31 -02:00
cpia2 [media] media: usb: cpia2: Use kmemdup instead of kmalloc and memcpy 2017-01-31 07:46:34 -02:00
cx231xx [media] cx231xx: Fix I2C on Internal Master 3 Bus 2017-02-07 09:09:10 -02:00
dvb-usb [media] cxusb: Use a dma capable buffer also for reading 2017-02-08 11:52:40 -02:00
dvb-usb-v2 [media] zd1301: fix building interface driver without demodulator 2017-02-08 11:59:39 -02:00
em28xx [media] em28xx: support for Hauppauge WinTV-dualHD 01595 ATSC/QAM 2017-02-03 13:46:42 -02:00
go7007 [media] go7007: add MEDIA_CAMERA_SUPPORT dependency 2016-11-23 13:15:02 -02:00
gspca [media] gspca_stv06xx: remove redundant check for err < 0 2017-02-03 11:18:33 -02:00
hackrf [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
hdpvr [media] hdpvr: fix interrupted recording 2016-11-16 13:30:30 -02:00
msi2500 [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
pulse8-cec [media] cec: pass parent device in register(), not allocate() 2016-11-29 12:07:17 -02:00
pvrusb2 [media] pvrusb2-io: Add some spaces for better code readability 2017-01-31 08:05:45 -02:00
pwc Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
s2255 [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
siano [media] siano: don't break long lines 2016-10-21 09:52:50 -02:00
stk1160 [media] stk1160: make some functions static 2017-02-03 11:30:37 -02:00
stkwebcam [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
tm6000 [media] tm6000: fix typo in parameter description 2017-02-03 14:23:29 -02:00
ttusb-budget [media] ttusb-budget: don't break long lines 2016-10-21 09:54:20 -02:00
ttusb-dec [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
usbtv [media] usbtv: add sharpness control 2017-02-08 11:57:24 -02:00
usbvision [media] media/usbvision: remove ctrl_urb_wq 2017-02-03 13:40:20 -02:00
uvc [media] uvcvideo: Change result code of debugfs_init to void 2017-01-31 10:56:48 -02:00
zr364xx [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
Kconfig [media] pulse8-cec: move out of staging 2016-11-16 15:47:12 -02:00
Makefile [media] pulse8-cec: move out of staging 2016-11-16 15:47:12 -02:00