diff options
Diffstat (limited to 'drivers/media/dvb/frontends/l64781.h')
-rw-r--r-- | drivers/media/dvb/frontends/l64781.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/l64781.h b/drivers/media/dvb/frontends/l64781.h index 83b8bc210274..21ba4a230760 100644 --- a/drivers/media/dvb/frontends/l64781.h +++ b/drivers/media/dvb/frontends/l64781.h | |||
@@ -31,8 +31,16 @@ struct l64781_config | |||
31 | u8 demod_address; | 31 | u8 demod_address; |
32 | }; | 32 | }; |
33 | 33 | ||
34 | 34 | #if defined(CONFIG_DVB_L64781) || defined(CONFIG_DVB_L64781_MODULE) | |
35 | extern struct dvb_frontend* l64781_attach(const struct l64781_config* config, | 35 | extern struct dvb_frontend* l64781_attach(const struct l64781_config* config, |
36 | struct i2c_adapter* i2c); | 36 | struct i2c_adapter* i2c); |
37 | #else | ||
38 | static inline struct dvb_frontend* l64781_attach(const struct l64781_config* config, | ||
39 | struct i2c_adapter* i2c) | ||
40 | { | ||
41 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); | ||
42 | return NULL; | ||
43 | } | ||
44 | #endif // CONFIG_DVB_L64781 | ||
37 | 45 | ||
38 | #endif // L64781_H | 46 | #endif // L64781_H |