diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-10-09 10:17:09 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-10-14 05:44:02 +0200 |
commit | fc13d929cc7af3c0da09ea2b6d23465b933e279d (patch) | |
tree | db31f435ae758b5300cad73b8deaef3f47baea60 /drivers/media/dvb/frontends/tda10086.h | |
parent | V4L/DVB (4732): Fix spelling error in Kconfig help text for DVB_CORE_ATTACH (diff) | |
download | linux-fc13d929cc7af3c0da09ea2b6d23465b933e279d.tar.xz linux-fc13d929cc7af3c0da09ea2b6d23465b933e279d.zip |
V4L/DVB (4733): Tda10086: fix frontend selection for dvb_attach
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/tda10086.h')
-rw-r--r-- | drivers/media/dvb/frontends/tda10086.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/tda10086.h b/drivers/media/dvb/frontends/tda10086.h index e8061db11123..18457adee30b 100644 --- a/drivers/media/dvb/frontends/tda10086.h +++ b/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 |