Re: [build bug] undefined reference to `dib3000mc_get_tuner_i2c_master'

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: <linux-kernel@...>, Mauro Carvalho Chehab <mchehab@...>, Patrick Boettcher <pb@...>, Marcel Holtmann <marcel@...>
Date: Tuesday, December 4, 2007 - 6:32 am

On Tue, 4 Dec 2007, Ingo Molnar wrote:


Hmm, seems like -common part contains also code that is not completely 
common to all the modules.

How about this?



From: Jiri Kosina <jkosina@suse.cz>

DVB: Compile 3000MC-specific DIB code only for CONFIG_DVB_DIB3000MC

Signed-off-by: Jiri Kosina <jkosina@suse.cz>

diff --git a/drivers/media/dvb/dvb-usb/dibusb-common.c b/drivers/media/dvb/dvb-usb/dibusb-common.c
index 9a184da..b95b1eb 100644
--- a/drivers/media/dvb/dvb-usb/dibusb-common.c
+++ b/drivers/media/dvb/dvb-usb/dibusb-common.c
@@ -223,6 +223,7 @@ static struct dibx000_agc_config dib3000p_panasonic_agc_config = {
 	.agc2_slope2 = 0x1e,
 };
 
+#ifdef CONFIG_DVB_DIB3000MC
 static struct dib3000mc_config mod3000p_dib3000p_config = {
 	&dib3000p_panasonic_agc_config,
 
@@ -305,6 +306,7 @@ int dibusb_dib3000mc_tuner_attach(struct dvb_usb_adapter *adap)
 	return 0;
 }
 EXPORT_SYMBOL(dibusb_dib3000mc_tuner_attach);
+#endif
 
 /*
  * common remote control stuff
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [build bug] undefined reference to `dib3000mc_get_tuner_..., Jiri Kosina, (Tue Dec 4, 6:32 am)
Re: [build bug] undefined reference to `dib3000mc_get_tuner_..., Mauro Carvalho Chehab, (Wed Dec 5, 2:01 pm)