diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-02-12 02:54:33 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-02-12 02:54:33 +0000 |
commit | 3aed2dda85beece8f89e78d6a8412ec245a9b224 (patch) | |
tree | 8286911aeac02d6113a9155f318a284cb061432d /linux/drivers | |
parent | 09389dcdc98375eac3c0e525aadc46b341f48385 (diff) | |
download | mediapointer-dvb-s2-3aed2dda85beece8f89e78d6a8412ec245a9b224.tar.gz mediapointer-dvb-s2-3aed2dda85beece8f89e78d6a8412ec245a9b224.tar.bz2 |
xc5000: fix build error when built as module
From: Tony Breeds <tony@bakeyournoodle.com>
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>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/dvb/frontends/xc5000.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/xc5000.h b/linux/drivers/media/dvb/frontends/xc5000.h index e0e84562a..32a5f1c86 100644 --- a/linux/drivers/media/dvb/frontends/xc5000.h +++ b/linux/drivers/media/dvb/frontends/xc5000.h @@ -45,7 +45,8 @@ struct xc5000_config { /* xc5000 callback command */ #define XC5000_TUNER_RESET 0 -#if defined(CONFIG_DVB_TUNER_XC5000) || defined(CONFIG_DVB_TUNER_XC5000_MODULE) +#if defined(CONFIG_DVB_TUNER_XC5000) || \ + (defined(CONFIG_DVB_TUNER_XC5000_MODULE) && defined(MODULE)) extern struct dvb_frontend* xc5000_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct xc5000_config *cfg); |