Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f6b5cf771afcc96444cab44805e5a73e42f97db2
Commit:     f6b5cf771afcc96444cab44805e5a73e42f97db2
Parent:     8733e29748591ce04f7cf07fc9c177f63e7df6af
Author:     Jiri Kosina <[EMAIL PROTECTED]>
AuthorDate: Wed Dec 5 15:14:19 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Tue Dec 11 18:13:17 2007 -0200

    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 <[EMAIL PROTECTED]>
    Tested-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/dvb/dvb-usb/dibusb-common.c |    2 ++
 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 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
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to