From 5e8fe57d32dd88f0f84ff9c19e57d2e586dba9a7 Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Tue, 22 Apr 2003 16:30:45 +0000 Subject: =?UTF-8?q?-=20removed=20the=20compatibility=20crap=20around=20KBU?= =?UTF-8?q?ILD=5FMODNAME=20from=20all=20drivers,=20=20=20use=20=20KBUILD?= =?UTF-8?q?=5FBASENAME=20for=202.4=20instead=20=C2=AD=20some=20changes=20t?= =?UTF-8?q?o=20the=20i2c=20core=20to=20make=20it=20work=20with=20both=202.?= =?UTF-8?q?4=20and=20late=202.5=20=20=20kernels=20(not=20done=20yet=20--?= =?UTF-8?q?=20only=20interesting=20for=20analog=20drivers)=20-=20add=20MOD?= =?UTF-8?q?ULE=5FDEVICE=5FTABLE=20to=20all=20drivers,=20so=20that=20pci=20?= =?UTF-8?q?"hotplug"=20can=20detect=20=20=20the=20devices=20automatically.?= =?UTF-8?q?=20Alan=20Cox=20says,=20that=20we=20should=20use=20this=20to=20?= =?UTF-8?q?load=20=20=20the=20firmware=20(not=20done=20yet)=20-=20fix=20th?= =?UTF-8?q?e=20long=20standing=20"insmod/rmmod=20with=20multiple=20budget?= =?UTF-8?q?=20cards"=20bug=20--=20it=20=20=20was=20a=20double=20kfree()=20?= =?UTF-8?q?call...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linux/drivers/media/video/dpc7146.c | 6 ++---- linux/drivers/media/video/mxb.c | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'linux/drivers/media/video') diff --git a/linux/drivers/media/video/dpc7146.c b/linux/drivers/media/video/dpc7146.c index ee2eb280f..403bbca5e 100644 --- a/linux/drivers/media/video/dpc7146.c +++ b/linux/drivers/media/video/dpc7146.c @@ -23,10 +23,6 @@ #include #include /* for saa7111a */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,51) - #define KBUILD_MODNAME dpc7146 -#endif - #define I2C_SAA7111A 0x24 /* All unused bytes are reserverd. */ @@ -340,6 +336,8 @@ struct pci_device_id pci_tbl[] = { } }; +MODULE_DEVICE_TABLE(pci, pci_tbl); + static struct saa7146_ext_vv vv_data = { .inputs = DPC_INPUTS, diff --git a/linux/drivers/media/video/mxb.c b/linux/drivers/media/video/mxb.c index b602a1d26..2463987b4 100644 --- a/linux/drivers/media/video/mxb.c +++ b/linux/drivers/media/video/mxb.c @@ -26,10 +26,6 @@ #include #include /* for saa7111a */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,51) - #define KBUILD_MODNAME mxb -#endif - #include "mxb.h" #include "tea6415c.h" #include "tea6420.h" @@ -1030,6 +1026,8 @@ struct pci_device_id pci_tbl[] = { } }; +MODULE_DEVICE_TABLE(pci, pci_tbl); + static struct saa7146_ext_vv vv_data = { .inputs = MXB_INPUTS, -- cgit v1.2.3