dect
/
linux-2.6
Archived
13
0
Fork 0

[media] Mantis, hopper: use MODULE_DEVICE_TABLE

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>
This commit is contained in:
Manu Abraham 2010-02-11 04:11:05 -03:00 committed by Mauro Carvalho Chehab
parent e6f199f3e7
commit 116d588ea2
2 changed files with 4 additions and 0 deletions

View 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,

View 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,