Skip to content

Commit

Permalink
[media] Mantis, hopper: use MODULE_DEVICE_TABLE
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Manu Abraham authored and Mauro Carvalho Chehab committed Dec 29, 2010
1 parent e6f199f commit 116d588
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/media/dvb/mantis/hopper_cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions drivers/media/dvb/mantis/mantis_cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 116d588

Please sign in to comment.