[IRDA]: pci_register_driver conversion
authorChristophe Lucas <clucas@ifrance.com>
Tue, 21 Mar 2006 03:00:27 +0000 (19:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 03:00:27 +0000 (19:00 -0800)
This patch converts 2 IrDA drivers pci_module_init() calls to
pci_register_driver().

Signed-off-by: Christophe Lucas <clucas@ifrance.com>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/irda/donauboe.c
drivers/net/irda/vlsi_ir.c

index 3137592d60c01816f3bb03bb0d4bd05227432f99..910c0cab35b02a7d2b939779ec9a04aff2cd30e0 100644 (file)
@@ -1778,7 +1778,7 @@ static struct pci_driver donauboe_pci_driver = {
 static int __init
 donauboe_init (void)
 {
-  return pci_module_init(&donauboe_pci_driver);
+  return pci_register_driver(&donauboe_pci_driver);
 }
 
 static void __exit
index a9f49f058cfb0e2c9a1c625cfcfa9d482c03e14d..97a49e0be76bc6197945814639b41e1d39f6caf1 100644 (file)
@@ -1887,7 +1887,7 @@ static int __init vlsi_mod_init(void)
                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)
                remove_proc_entry(PROC_DIR, NULL);