]> err.no Git - linux-2.6/commitdiff
[PATCH] arch: Replace pci_module_init() with pci_register_driver()
authorRichard Knutsson <ricknu-0@student.ltu.se>
Tue, 29 Nov 2005 23:59:14 +0000 (00:59 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 Jan 2006 20:13:21 +0000 (12:13 -0800)
Replace obsolete pci_module_init() with pci_register_driver().

Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/i386/kernel/scx200.c
arch/mips/vr41xx/common/vrc4173.c

index 9c968ae67c43dd1d4c008db3f37c8bc64a9f802d..321f5fd26e75062ef2119710e9ce1b7047ac662c 100644 (file)
@@ -143,7 +143,7 @@ static int __init scx200_init(void)
 {
        printk(KERN_INFO NAME ": NatSemi SCx200 Driver\n");
 
-       return pci_module_init(&scx200_pci_driver);
+       return pci_register_driver(&scx200_pci_driver);
 }
 
 static void __exit scx200_cleanup(void)
index 462a9af30eef7fb3d341cd7a3eddf2c42f055547..cc52e75e14e727a45d056dd8c9f66f793dc6de16 100644 (file)
@@ -561,7 +561,7 @@ static int __devinit vrc4173_init(void)
 {
        int err;
 
-       err = pci_module_init(&vrc4173_driver);
+       err = pci_register_driver(&vrc4173_driver);
        if (err < 0)
                return err;