diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-10-09 04:17:09 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2006-10-09 04:17:09 -0400 |
commit | fce444171fc73aa6b85d74abeee0dc45f0bf4c32 (patch) | |
tree | b2852d6c368e127e2016a874c8e45414cc502494 /linux/drivers/media/dvb/frontends/tda10086.h | |
parent | b1f085c11616b29c7eeb9afcc94dac3687f321a9 (diff) | |
download | mediapointer-dvb-s2-fce444171fc73aa6b85d74abeee0dc45f0bf4c32.tar.gz mediapointer-dvb-s2-fce444171fc73aa6b85d74abeee0dc45f0bf4c32.tar.bz2 |
tda10086: fix frontend selection for dvb_attach
From: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/tda10086.h')
-rw-r--r-- | linux/drivers/media/dvb/frontends/tda10086.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda10086.h b/linux/drivers/media/dvb/frontends/tda10086.h index e8061db11..18457adee 100644 --- a/linux/drivers/media/dvb/frontends/tda10086.h +++ b/linux/drivers/media/dvb/frontends/tda10086.h @@ -35,7 +35,16 @@ struct tda10086_config u8 invert; }; +#if defined(CONFIG_DVB_TDA10086) || defined(CONFIG_DVB_TDA10086_MODULE) extern struct dvb_frontend* tda10086_attach(const struct tda10086_config* config, struct i2c_adapter* i2c); +#else +static inline struct dvb_frontend* tda10086_attach(const struct tda10086_config* config, + struct i2c_adapter* i2c) +{ + printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); + return NULL; +} +#endif // CONFIG_DVB_TDA10086 #endif // TDA10086_H |