]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] Mantis, hopper: use MODULE_DEVICE_TABLE
authorManu Abraham <abraham.manu@gmail.com>
Thu, 11 Feb 2010 07:11:05 +0000 (04:11 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:16:48 +0000 (08:16 -0200)
use the macro to make modules auto-loadable

Thanks to Ozan Çağlayan <ozan@pardus.org.tr> for pointing it out

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/mantis/hopper_cards.c
drivers/media/dvb/mantis/mantis_cards.c

index 09e9fc785189c2196fb04fe2273efcc4e867a1c3..70e73afefb3de41a8f4d4b7489feea5c0723c2e7 100644 (file)
@@ -251,6 +251,8 @@ static struct pci_device_id hopper_pci_table[] = {
        { }
 };
 
+MODULE_DEVICE_TABLE(pci, hopper_pci_table);
+
 static struct pci_driver hopper_pci_driver = {
        .name           = DRIVER_NAME,
        .id_table       = hopper_pci_table,
index cf4b39ffdaad608dc0e5399def4f74ca63e10543..40da225098cc764fce243fa14821285066a9a60a 100644 (file)
@@ -281,6 +281,8 @@ static struct pci_device_id mantis_pci_table[] = {
        { }
 };
 
+MODULE_DEVICE_TABLE(pci, mantis_pci_table);
+
 static struct pci_driver mantis_pci_driver = {
        .name           = DRIVER_NAME,
        .id_table       = mantis_pci_table,