aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/nosy.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firewire/nosy.c')
-rw-r--r--drivers/firewire/nosy.c20
1 files changed, 4 insertions, 16 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
696MODULE_DEVICE_TABLE(pci, pci_table);
697
696static struct pci_driver lynx_pci_driver = { 698static 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
705module_pci_driver(lynx_pci_driver);
706
703MODULE_AUTHOR("Kristian Hoegsberg"); 707MODULE_AUTHOR("Kristian Hoegsberg");
704MODULE_DESCRIPTION("Snoop mode driver for TI pcilynx 1394 controllers"); 708MODULE_DESCRIPTION("Snoop mode driver for TI pcilynx 1394 controllers");
705MODULE_LICENSE("GPL"); 709MODULE_LICENSE("GPL");
706MODULE_DEVICE_TABLE(pci, pci_table);
707
708static int __init nosy_init(void)
709{
710 return pci_register_driver(&lynx_pci_driver);
711}
712
713static void __exit nosy_cleanup(void)
714{
715 pci_unregister_driver(&lynx_pci_driver);
716
717 pr_info("Unloaded %s\n", driver_name);
718}
719
720module_init(nosy_init);
721module_exit(nosy_cleanup);