From c36112bb3e8d7d6f6e88a59e8f79f8f412a7931b Mon Sep 17 00:00:00 2001 From: Michael Krufky Date: Mon, 9 Oct 2006 05:17:09 -0300 Subject: [PATCH] --- yaml --- r: 39571 b: refs/heads/master c: fc13d929cc7af3c0da09ea2b6d23465b933e279d h: refs/heads/master i: 39569: ba1e5c9013453b2fedcc3269e4604e9a36ecf733 39567: 6838b21961f2851078343a6aab05c35231b2f9b9 v: v3 --- [refs] | 2 +- trunk/drivers/media/dvb/frontends/tda10086.h | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index af992b88f119..2450ae35448b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 934765b8e2f211aec119dbdd9feea6d3f2ffaf7e +refs/heads/master: fc13d929cc7af3c0da09ea2b6d23465b933e279d diff --git a/trunk/drivers/media/dvb/frontends/tda10086.h b/trunk/drivers/media/dvb/frontends/tda10086.h index e8061db11123..18457adee30b 100644 --- a/trunk/drivers/media/dvb/frontends/tda10086.h +++ b/trunk/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