V4L/DVB (8001): dib0070: fix dib0070_attach when !CONFIG_DVB_TUNER_DIB0070

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

authored by Michael Krufky and committed by Mauro Carvalho Chehab be573e78 67642a0a

+14 -1
+14 -1
drivers/media/dvb/frontends/dib0070.h
··· 37 37 u8 flip_chip; 38 38 }; 39 39 40 - extern struct dvb_frontend * dib0070_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct dib0070_config *cfg); 40 + #if defined(CONFIG_DVB_TUNER_DIB0070) || (defined(CONFIG_DVB_TUNER_DIB0070_MODULE) && defined(MODULE)) 41 + extern struct dvb_frontend *dib0070_attach(struct dvb_frontend *fe, 42 + struct i2c_adapter *i2c, 43 + struct dib0070_config *cfg); 44 + #else 45 + static inline struct dvb_frontend *dib0070_attach(struct dvb_frontend *fe, 46 + struct i2c_adapter *i2c, 47 + struct dib0070_config *cfg) 48 + { 49 + printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 50 + return NULL; 51 + } 52 + #endif 53 + 41 54 extern void dib0070_ctrl_agc_filter(struct dvb_frontend *, uint8_t open); 42 55 extern u16 dib0070_wbd_offset(struct dvb_frontend *); 43 56