aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/dibusb-common.c
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2007-12-05 13:14:19 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-12-11 15:13:17 -0500
commitf6b5cf771afcc96444cab44805e5a73e42f97db2 (patch)
treec6ab1ec9d05526d91dd23cb4e3c946b50c5e2f98 /drivers/media/dvb/dvb-usb/dibusb-common.c
parent8733e29748591ce04f7cf07fc9c177f63e7df6af (diff)
V4L/DVB (6733): DVB: Compile 3000MC-specific DIB code only for CONFIG_DVB_DIB3000MC
On Tue, 4 Dec 2007, Ingo Molnar wrote: > drivers/built-in.o: In function `dibusb_dib3000mc_tuner_attach': > : undefined reference to `dib3000mc_get_tuner_i2c_master' > drivers/built-in.o: In function `dibusb_dib3000mc_tuner_attach': > : undefined reference to `dib3000mc_set_config' Seems like -common part contains also code that is not completely common to all the modules. Signed-off-by: Jiri Kosina <jkosina@suse.cz> Tested-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dibusb-common.c')
-rw-r--r--drivers/media/dvb/dvb-usb/dibusb-common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-usb/dibusb-common.c b/drivers/media/dvb/dvb-usb/dibusb-common.c
index 9a184da01c47..b95b1eb1eba2 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 = {
223 .agc2_slope2 = 0x1e, 223 .agc2_slope2 = 0x1e,
224}; 224};
225 225
226#ifdef CONFIG_DVB_DIB3000MC
226static struct dib3000mc_config mod3000p_dib3000p_config = { 227static struct dib3000mc_config mod3000p_dib3000p_config = {
227 &dib3000p_panasonic_agc_config, 228 &dib3000p_panasonic_agc_config,
228 229
@@ -305,6 +306,7 @@ int dibusb_dib3000mc_tuner_attach(struct dvb_usb_adapter *adap)
305 return 0; 306 return 0;
306} 307}
307EXPORT_SYMBOL(dibusb_dib3000mc_tuner_attach); 308EXPORT_SYMBOL(dibusb_dib3000mc_tuner_attach);
309#endif
308 310
309/* 311/*
310 * common remote control stuff 312 * common remote control stuff