diff options
-rw-r--r-- | drivers/firewire/nosy.c | 20 | ||||
-rw-r--r-- | drivers/firewire/ohci.c | 15 |
2 files changed, 6 insertions, 29 deletions
diff --git a/drivers/firewire/nosy.c b/drivers/firewire/nosy.c index a7c4422a688e..4ebfb2273672 100644 --- a/drivers/firewire/nosy.c +++ b/drivers/firewire/nosy.c | |||
@@ -693,6 +693,8 @@ static struct pci_device_id pci_table[] __devinitdata = { | |||
693 | { } /* Terminating entry */ | 693 | { } /* Terminating entry */ |
694 | }; | 694 | }; |
695 | 695 | ||
696 | MODULE_DEVICE_TABLE(pci, pci_table); | ||
697 | |||
696 | static struct pci_driver lynx_pci_driver = { | 698 | static struct pci_driver lynx_pci_driver = { |
697 | .name = driver_name, | 699 | .name = driver_name, |
698 | .id_table = pci_table, | 700 | .id_table = pci_table, |
@@ -700,22 +702,8 @@ static struct pci_driver lynx_pci_driver = { | |||
700 | .remove = remove_card, | 702 | .remove = remove_card, |
701 | }; | 703 | }; |
702 | 704 | ||
705 | module_pci_driver(lynx_pci_driver); | ||
706 | |||
703 | MODULE_AUTHOR("Kristian Hoegsberg"); | 707 | MODULE_AUTHOR("Kristian Hoegsberg"); |
704 | MODULE_DESCRIPTION("Snoop mode driver for TI pcilynx 1394 controllers"); | 708 | MODULE_DESCRIPTION("Snoop mode driver for TI pcilynx 1394 controllers"); |
705 | MODULE_LICENSE("GPL"); | 709 | MODULE_LICENSE("GPL"); |
706 | MODULE_DEVICE_TABLE(pci, pci_table); | ||
707 | |||
708 | static int __init nosy_init(void) | ||
709 | { | ||
710 | return pci_register_driver(&lynx_pci_driver); | ||
711 | } | ||
712 | |||
713 | static void __exit nosy_cleanup(void) | ||
714 | { | ||
715 | pci_unregister_driver(&lynx_pci_driver); | ||
716 | |||
717 | pr_info("Unloaded %s\n", driver_name); | ||
718 | } | ||
719 | |||
720 | module_init(nosy_init); | ||
721 | module_exit(nosy_cleanup); | ||
diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c index 2b5460075a9f..67c8d274473b 100644 --- a/drivers/firewire/ohci.c +++ b/drivers/firewire/ohci.c | |||
@@ -3789,6 +3789,8 @@ static struct pci_driver fw_ohci_pci_driver = { | |||
3789 | #endif | 3789 | #endif |
3790 | }; | 3790 | }; |
3791 | 3791 | ||
3792 | module_pci_driver(fw_ohci_pci_driver); | ||
3793 | |||
3792 | MODULE_AUTHOR("Kristian Hoegsberg <krh@bitplanet.net>"); | 3794 | MODULE_AUTHOR("Kristian Hoegsberg <krh@bitplanet.net>"); |
3793 | MODULE_DESCRIPTION("Driver for PCI OHCI IEEE1394 controllers"); | 3795 | MODULE_DESCRIPTION("Driver for PCI OHCI IEEE1394 controllers"); |
3794 | MODULE_LICENSE("GPL"); | 3796 | MODULE_LICENSE("GPL"); |
@@ -3797,16 +3799,3 @@ MODULE_LICENSE("GPL"); | |||
3797 | #ifndef CONFIG_IEEE1394_OHCI1394_MODULE | 3799 | #ifndef CONFIG_IEEE1394_OHCI1394_MODULE |
3798 | MODULE_ALIAS("ohci1394"); | 3800 | MODULE_ALIAS("ohci1394"); |
3799 | #endif | 3801 | #endif |
3800 | |||
3801 | static int __init fw_ohci_init(void) | ||
3802 | { | ||
3803 | return pci_register_driver(&fw_ohci_pci_driver); | ||
3804 | } | ||
3805 | |||
3806 | static void __exit fw_ohci_cleanup(void) | ||
3807 | { | ||
3808 | pci_unregister_driver(&fw_ohci_pci_driver); | ||
3809 | } | ||
3810 | |||
3811 | module_init(fw_ohci_init); | ||
3812 | module_exit(fw_ohci_cleanup); | ||