V4L/DVB (13810): [MB86A16] Use DVB_* macros
authorManu Abraham <abraham.manu@gmail.com>
Tue, 15 Dec 2009 12:01:27 +0000 (09:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 17 Jan 2010 13:55:44 +0000 (11:55 -0200)
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/mb86a16.h

index 68f25a640173258bf518f8c521f207f59564ed5b..a88a6a1febf82a758405751574a533af59de00c6 100644 (file)
@@ -31,8 +31,22 @@ struct mb86a16_config {
        int (*set_voltage)(struct dvb_frontend *fe, fe_sec_voltage_t voltage);
 };
 
+
+
+#if defined(CONFIG_DVB_MB86A16) || (defined(CONFIG_DVB_MB86A16_MODULE) && defined(MODULE))
+
 extern struct dvb_frontend *mb86a16_attach(const struct mb86a16_config *config,
                                           struct i2c_adapter *i2c_adap);
 
+#else
+
+static inline struct dvb_frontend *mb86a16_attach(const struct mb86a16_config *config,
+                                          struct i2c_adapter *i2c_adap)
+{
+       printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
+       return NULL;
+}
+
+#endif /* CONFIG_DVB_MB86A16 */
 
 #endif /* __MB86A16_H */