Skip to content

Commit 7a723c6

Browse files
gatzkaStefan Richter
authored andcommitted
firewire: ohci: Change module_pci_driver to module_init/module_exit
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>
1 parent 0dbe15f commit 7a723c6

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

drivers/firewire/ohci.c

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3870,7 +3870,18 @@ static struct pci_driver fw_ohci_pci_driver = {
38703870
#endif
38713871
};
38723872

3873-
module_pci_driver(fw_ohci_pci_driver);
3873+
static int __init fw_ohci_init(void)
3874+
{
3875+
return pci_register_driver(&fw_ohci_pci_driver);
3876+
}
3877+
3878+
static void __exit fw_ohci_cleanup(void)
3879+
{
3880+
pci_unregister_driver(&fw_ohci_pci_driver);
3881+
}
3882+
3883+
module_init(fw_ohci_init);
3884+
module_exit(fw_ohci_cleanup);
38743885

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

0 commit comments

Comments
 (0)