diff options
Diffstat (limited to 'linux/drivers/media/dvb/frontends/at76c651.h')
-rw-r--r-- | linux/drivers/media/dvb/frontends/at76c651.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/at76c651.h b/linux/drivers/media/dvb/frontends/at76c651.h index c31db11a2..32b26e368 100644 --- a/linux/drivers/media/dvb/frontends/at76c651.h +++ b/linux/drivers/media/dvb/frontends/at76c651.h @@ -37,7 +37,16 @@ struct at76c651_config u8 demod_address; }; +#if defined(CONFIG_DVB_AT76C651) || defined(CONFIG_DVB_AT76C651_MODULE) extern struct dvb_frontend* at76c651_attach(const struct at76c651_config* config, struct i2c_adapter* i2c); +#else +static inline struct dvb_frontend* at76c651_attach(const struct at76c651_config* config, + struct i2c_adapter* i2c) +{ + printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); + return NULL; +} +#endif // CONFIG_DVB_AT76C651 #endif // AT76C651_H |