diff options
author | Manu Abraham <abraham.manu@gmail.com> | 2010-02-11 02:11:05 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 05:16:48 -0500 |
commit | 116d588ea21cf0278a4de1e3272e9c3220a647e7 (patch) | |
tree | 7a3a420e1731574d08f7256f694defd72bd36c03 /drivers/media/dvb | |
parent | e6f199f3e7e10112adfa80700ecc00b056b5a62e (diff) |
[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>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/mantis/hopper_cards.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_cards.c | 2 |
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 09e9fc785189..70e73afefb3d 100644 --- a/drivers/media/dvb/mantis/hopper_cards.c +++ b/drivers/media/dvb/mantis/hopper_cards.c | |||
@@ -251,6 +251,8 @@ static struct pci_device_id hopper_pci_table[] = { | |||
251 | { } | 251 | { } |
252 | }; | 252 | }; |
253 | 253 | ||
254 | MODULE_DEVICE_TABLE(pci, hopper_pci_table); | ||
255 | |||
254 | static struct pci_driver hopper_pci_driver = { | 256 | static struct pci_driver hopper_pci_driver = { |
255 | .name = DRIVER_NAME, | 257 | .name = DRIVER_NAME, |
256 | .id_table = hopper_pci_table, | 258 | .id_table = hopper_pci_table, |
diff --git a/drivers/media/dvb/mantis/mantis_cards.c b/drivers/media/dvb/mantis/mantis_cards.c index cf4b39ffdaad..40da225098cc 100644 --- a/drivers/media/dvb/mantis/mantis_cards.c +++ b/drivers/media/dvb/mantis/mantis_cards.c | |||
@@ -281,6 +281,8 @@ static struct pci_device_id mantis_pci_table[] = { | |||
281 | { } | 281 | { } |
282 | }; | 282 | }; |
283 | 283 | ||
284 | MODULE_DEVICE_TABLE(pci, mantis_pci_table); | ||
285 | |||
284 | static struct pci_driver mantis_pci_driver = { | 286 | static struct pci_driver mantis_pci_driver = { |
285 | .name = DRIVER_NAME, | 287 | .name = DRIVER_NAME, |
286 | .id_table = mantis_pci_table, | 288 | .id_table = mantis_pci_table, |