Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4a56087f3b7660c9824e9ec69b96ccf8d9b25d1c
Commit:     4a56087f3b7660c9824e9ec69b96ccf8d9b25d1c
Parent:     f6b5cf771afcc96444cab44805e5a73e42f97db2
Author:     Mauro Carvalho Chehab <[EMAIL PROTECTED]>
AuthorDate: Tue Dec 11 14:59:10 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Tue Dec 11 18:13:28 2007 -0200

    V4L/DVB (6794): Fix compilation when dib3000mc is compiled as a module
    
    As reported by Andrew Morton:
    
    > ERROR: "dibusb_dib3000mc_frontend_attach" 
[drivers/media/dvb/dvb-usb/dvb-usb-nova-t-usb2.ko] undefined!
    > ERROR: "dibusb_dib3000mc_tuner_attach" 
[drivers/media/dvb/dvb-usb/dvb-usb-nova-t-usb2.ko] undefined!
    > ERROR: "dibusb_dib3000mc_frontend_attach" 
[drivers/media/dvb/dvb-usb/dvb-usb-dibusb-mc.ko] undefined!
    > ERROR: "dibusb_dib3000mc_tuner_attach" 
[drivers/media/dvb/dvb-usb/dvb-usb-dibusb-mc.ko] undefined!
    > ERROR: "dibusb_dib3000mc_frontend_attach" 
[drivers/media/dvb/dvb-usb/dvb-usb-a800.ko] undefined!
    > ERROR: "dibusb_dib3000mc_tuner_attach" 
[drivers/media/dvb/dvb-usb/dvb-usb-a800.ko] undefined
    
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/dvb/dvb-usb/dibusb-common.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/media/dvb/dvb-usb/dibusb-common.c 
b/drivers/media/dvb/dvb-usb/dibusb-common.c
index b95b1eb..8ee6cd4 100644
--- a/drivers/media/dvb/dvb-usb/dibusb-common.c
+++ b/drivers/media/dvb/dvb-usb/dibusb-common.c
@@ -223,7 +223,9 @@ static struct dibx000_agc_config 
dib3000p_panasonic_agc_config = {
        .agc2_slope2 = 0x1e,
 };
 
-#ifdef CONFIG_DVB_DIB3000MC
+#if defined(CONFIG_DVB_DIB3000MC) ||                                   \
+       (defined(CONFIG_DVB_DIB3000MC_MODULE) && defined(MODULE))
+
 static struct dib3000mc_config mod3000p_dib3000p_config = {
        &dib3000p_panasonic_agc_config,
 
-
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