diff options
-rw-r--r-- | drivers/media/dvb/frontends/mb86a16.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/mb86a16.h b/drivers/media/dvb/frontends/mb86a16.h index 68f25a640173..a88a6a1febf8 100644 --- a/drivers/media/dvb/frontends/mb86a16.h +++ b/drivers/media/dvb/frontends/mb86a16.h | |||
@@ -31,8 +31,22 @@ struct mb86a16_config { | |||
31 | int (*set_voltage)(struct dvb_frontend *fe, fe_sec_voltage_t voltage); | 31 | int (*set_voltage)(struct dvb_frontend *fe, fe_sec_voltage_t voltage); |
32 | }; | 32 | }; |
33 | 33 | ||
34 | |||
35 | |||
36 | #if defined(CONFIG_DVB_MB86A16) || (defined(CONFIG_DVB_MB86A16_MODULE) && defined(MODULE)) | ||
37 | |||
34 | extern struct dvb_frontend *mb86a16_attach(const struct mb86a16_config *config, | 38 | extern struct dvb_frontend *mb86a16_attach(const struct mb86a16_config *config, |
35 | struct i2c_adapter *i2c_adap); | 39 | struct i2c_adapter *i2c_adap); |
36 | 40 | ||
41 | #else | ||
42 | |||
43 | static inline struct dvb_frontend *mb86a16_attach(const struct mb86a16_config *config, | ||
44 | struct i2c_adapter *i2c_adap) | ||
45 | { | ||
46 | printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__); | ||
47 | return NULL; | ||
48 | } | ||
49 | |||
50 | #endif /* CONFIG_DVB_MB86A16 */ | ||
37 | 51 | ||
38 | #endif /* __MB86A16_H */ | 52 | #endif /* __MB86A16_H */ |