Commit a85d771e authored by Christophe Lucas's avatar Christophe Lucas Committed by David S. Miller

[IRDA]: pci_register_driver conversion

This patch converts 2 IrDA drivers pci_module_init() calls to
pci_register_driver().
Signed-off-by: default avatarChristophe Lucas <clucas@ifrance.com>
Signed-off-by: default avatarDomen Puncer <domen@coderock.org>
Signed-off-by: default avatarSamuel Ortiz <samuel@sortiz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 03488826
...@@ -1778,7 +1778,7 @@ static struct pci_driver donauboe_pci_driver = { ...@@ -1778,7 +1778,7 @@ static struct pci_driver donauboe_pci_driver = {
static int __init static int __init
donauboe_init (void) donauboe_init (void)
{ {
return pci_module_init(&donauboe_pci_driver); return pci_register_driver(&donauboe_pci_driver);
} }
static void __exit static void __exit
......
...@@ -1887,7 +1887,7 @@ static int __init vlsi_mod_init(void) ...@@ -1887,7 +1887,7 @@ static int __init vlsi_mod_init(void)
vlsi_proc_root->owner = THIS_MODULE; vlsi_proc_root->owner = THIS_MODULE;
} }
ret = pci_module_init(&vlsi_irda_driver); ret = pci_register_driver(&vlsi_irda_driver);
if (ret && vlsi_proc_root) if (ret && vlsi_proc_root)
remove_proc_entry(PROC_DIR, NULL); remove_proc_entry(PROC_DIR, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment