diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-04-02 22:07:01 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2012-04-09 08:23:37 -0400 |
commit | fe2af11c220c7bb3a67f7aec0594811e5c59e019 (patch) | |
tree | 426d3d99ed35f7693db833d9dc2ef2be323b6a07 /drivers/firewire/ohci.c | |
parent | 0034102808e0dbbf3a2394b82b1bb40b5778de9e (diff) |
firewire: use module_pci_driver
This patch converts the drivers in drivers/firewire/* to use module_pci_driver()
macro which makes the code smaller and a bit simpler.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/ohci.c')
-rw-r--r-- | drivers/firewire/ohci.c | 15 |
1 files changed, 2 insertions, 13 deletions
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); | ||