diff options
Diffstat (limited to 'drivers/media/dvb/frontends/ves1820.h')
-rw-r--r-- | drivers/media/dvb/frontends/ves1820.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/ves1820.h b/drivers/media/dvb/frontends/ves1820.h index 520f09522fbb..f0c9dded39d7 100644 --- a/drivers/media/dvb/frontends/ves1820.h +++ b/drivers/media/dvb/frontends/ves1820.h | |||
@@ -41,7 +41,16 @@ struct ves1820_config | |||
41 | u8 selagc:1; | 41 | u8 selagc:1; |
42 | }; | 42 | }; |
43 | 43 | ||
44 | #if defined(CONFIG_DVB_VES1820) || defined(CONFIG_DVB_VES1820_MODULE) | ||
44 | extern struct dvb_frontend* ves1820_attach(const struct ves1820_config* config, | 45 | extern struct dvb_frontend* ves1820_attach(const struct ves1820_config* config, |
45 | struct i2c_adapter* i2c, u8 pwm); | 46 | struct i2c_adapter* i2c, u8 pwm); |
47 | #else | ||
48 | static inline struct dvb_frontend* ves1820_attach(const struct ves1820_config* config, | ||
49 | struct i2c_adapter* i2c, u8 pwm) | ||
50 | { | ||
51 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); | ||
52 | return NULL; | ||
53 | } | ||
54 | #endif // CONFIG_DVB_VES1820 | ||
46 | 55 | ||
47 | #endif // VES1820_H | 56 | #endif // VES1820_H |