diff options
Diffstat (limited to 'drivers/media/dvb-frontends/lgdt3306a.h')
-rw-r--r-- | drivers/media/dvb-frontends/lgdt3306a.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/media/dvb-frontends/lgdt3306a.h b/drivers/media/dvb-frontends/lgdt3306a.h index 9d97df8f0969..9e848b1e506e 100644 --- a/drivers/media/dvb-frontends/lgdt3306a.h +++ b/drivers/media/dvb-frontends/lgdt3306a.h @@ -63,15 +63,13 @@ struct lgdt3306a_config { int xtalMHz; }; -#if defined(CONFIG_DVB_LGDT3306A) || (defined(CONFIG_DVB_LGDT3306A_MODULE) && \ - defined(MODULE)) -extern +#if IS_ENABLED(CONFIG_DVB_LGDT3306A) struct dvb_frontend *lgdt3306a_attach(const struct lgdt3306a_config *config, - struct i2c_adapter *i2c_adap); + struct i2c_adapter *i2c_adap); #else static inline struct dvb_frontend *lgdt3306a_attach(const struct lgdt3306a_config *config, - struct i2c_adapter *i2c_adap) + struct i2c_adapter *i2c_adap) { printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); return NULL; |