Skip to content

Commit

Permalink
firewire: ohci: Change module_pci_driver to module_init/module_exit
Browse files Browse the repository at this point in the history
This is a prerequisite to allocate a per driver self_id workqueue.
This reverts the ohci.c part of patch
fe2af11.

Signed-off-by: Stephan Gatzka <stephan.gatzka@gmail.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
  • Loading branch information
Stephan Gatzka authored and Stefan Richter committed Aug 29, 2013
1 parent 0dbe15f commit 7a723c6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion drivers/firewire/ohci.c
Original file line number Diff line number Diff line change
Expand Up @@ -3870,7 +3870,18 @@ static struct pci_driver fw_ohci_pci_driver = {
#endif
};

module_pci_driver(fw_ohci_pci_driver);
static int __init fw_ohci_init(void)
{
return pci_register_driver(&fw_ohci_pci_driver);
}

static void __exit fw_ohci_cleanup(void)
{
pci_unregister_driver(&fw_ohci_pci_driver);
}

module_init(fw_ohci_init);
module_exit(fw_ohci_cleanup);

MODULE_AUTHOR("Kristian Hoegsberg <krh@bitplanet.net>");
MODULE_DESCRIPTION("Driver for PCI OHCI IEEE1394 controllers");
Expand Down

0 comments on commit 7a723c6

Please sign in to comment.