aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManu Abraham <abraham.manu@gmail.com>2010-02-11 11:11:05 +0400
committerBjørn Mork <bjorn@mork.no>2010-06-01 21:44:20 +0200
commitd3536036a37e4808eeed99e783e4d2b181fdde50 (patch)
tree73d2c0c7c88db192eb821bcfbd9a3021131a35fc
parente53d66f416e45eba2e964de9d3d32af1087945aa (diff)
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 From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org> (imported from http://jusst.de/hg/mantis-v4l-dvb/raw-rev/3731f71ed6bf) Signed-off-by: Bjørn Mork <bjorn@mork.no>
-rw-r--r--drivers/media/dvb/mantis/hopper_cards.c2
-rw-r--r--drivers/media/dvb/mantis/mantis_cards.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/dvb/mantis/hopper_cards.c b/drivers/media/dvb/mantis/hopper_cards.c
index d073c61e3c0..1bf03ac7276 100644
--- a/drivers/media/dvb/mantis/hopper_cards.c
+++ b/drivers/media/dvb/mantis/hopper_cards.c
@@ -250,6 +250,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,
diff --git a/drivers/media/dvb/mantis/mantis_cards.c b/drivers/media/dvb/mantis/mantis_cards.c
index 16f1708fd3b..64970cf324a 100644
--- a/drivers/media/dvb/mantis/mantis_cards.c
+++ b/drivers/media/dvb/mantis/mantis_cards.c
@@ -280,6 +280,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,