Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

V4L/DVB (7195): xc5000: fix build error when built as module

drivers/built-in.o: In function `set_type':
tuner-core.c:(.text+0x8879d): undefined reference to `xc5000_attach'

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Reviewed-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

authored by

Tony Breeds and committed by
Mauro Carvalho Chehab
c9fe1d6b 27d0fe18

+2 -1
+2 -1
drivers/media/dvb/frontends/xc5000.h
··· 45 45 /* xc5000 callback command */ 46 46 #define XC5000_TUNER_RESET 0 47 47 48 - #if defined(CONFIG_DVB_TUNER_XC5000) || defined(CONFIG_DVB_TUNER_XC5000_MODULE) 48 + #if defined(CONFIG_DVB_TUNER_XC5000) || \ 49 + (defined(CONFIG_DVB_TUNER_XC5000_MODULE) && defined(MODULE)) 49 50 extern struct dvb_frontend* xc5000_attach(struct dvb_frontend *fe, 50 51 struct i2c_adapter *i2c, 51 52 struct xc5000_config *cfg);