summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-12-05 16:14:19 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-12-05 16:14:19 -0200
commitb64d300b2b65a3074db10a584370a1ef7cad3af3 (patch)
tree13ce4a8e34c1ee627c16221d8e366c2d346993ab /linux/drivers/media
parent1ecbaa50c6dfbc09017fff9113c88dac126542b8 (diff)
downloadmediapointer-dvb-s2-b64d300b2b65a3074db10a584370a1ef7cad3af3.tar.gz
mediapointer-dvb-s2-b64d300b2b65a3074db10a584370a1ef7cad3af3.tar.bz2
DVB: Compile 3000MC-specific DIB code only for CONFIG_DVB_DIB3000MC
From: Jiri Kosina <jkosina@suse.cz> 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 'linux/drivers/media')
-rw-r--r--linux/drivers/media/dvb/dvb-usb/dibusb-common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/dibusb-common.c b/linux/drivers/media/dvb/dvb-usb/dibusb-common.c
index 9a184da01..b95b1eb1e 100644
--- a/linux/drivers/media/dvb/dvb-usb/dibusb-common.c
+++ b/linux/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