[PATCH] drivers/*rest*: Replace pci_module_init() with pci_register_driver()
authorRichard Knutsson <ricknu-0@student.ltu.se>
Wed, 30 Nov 2005 00:00:35 +0000 (01:00 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 Jan 2006 20:13:23 +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>
drivers/hwmon/vt8231.c
drivers/parport/parport_serial.c
drivers/pcmcia/vrc4173_cardu.c
drivers/serial/serial_txx9.c
drivers/video/cyblafb.c

index d00a726d0239a6d620deb280022ea1b7b478fa72..3eb08f004c0f8d7332791c812c8cc2b09462a39b 100644 (file)
@@ -841,7 +841,7 @@ static int __devinit vt8231_pci_probe(struct pci_dev *dev,
 
 static int __init sm_vt8231_init(void)
 {
-       return pci_module_init(&vt8231_pci_driver);
+       return pci_register_driver(&vt8231_pci_driver);
 }
 
 static void __exit sm_vt8231_exit(void)
index d3dad0aac7cb88aafeb71474d4a225b9af703cce..76dd077e3184f7ed85f3a78de3c8c66a29753199 100644 (file)
@@ -464,7 +464,7 @@ static struct pci_driver parport_serial_pci_driver = {
 
 static int __init parport_serial_init (void)
 {
-       return pci_module_init (&parport_serial_pci_driver);
+       return pci_register_driver (&parport_serial_pci_driver);
 }
 
 static void __exit parport_serial_exit (void)
index 1b277d2c1c96d9c5d57cdf7c8d134a125b3edd6e..b502db2790e0526042712cee16c03116ea381fe6 100644 (file)
@@ -561,7 +561,7 @@ static int __devinit vrc4173_cardu_init(void)
 {
        vrc4173_cardu_slots = 0;
 
-       return pci_module_init(&vrc4173_cardu_driver);
+       return pci_register_driver(&vrc4173_cardu_driver);
 }
 
 static void __devexit vrc4173_cardu_exit(void)
index f10c86d60b647fb8dedad8423d7f507920d3b705..995d9dd9ddd59c721b2ee85c708cb0c111f918f3 100644 (file)
@@ -1195,7 +1195,7 @@ static int __init serial_txx9_init(void)
                serial_txx9_register_ports(&serial_txx9_reg);
 
 #ifdef ENABLE_SERIAL_TXX9_PCI
-               ret = pci_module_init(&serial_txx9_pci_driver);
+               ret = pci_register_driver(&serial_txx9_pci_driver);
 #endif
        }
        return ret;
index e9f5dee67e3ccec6c873119ea8e3964954b94d7e..2b972461a030b9f2cfa92ee4aea4a62fa2c8b56e 100644 (file)
@@ -1666,6 +1666,7 @@ static int __devinit cyblafb_init(void)
 #endif
        output("CyblaFB version %s initializing\n", VERSION);
        return pci_module_init(&cyblafb_pci_driver);
+       return pci_register_driver(&cyblafb_pci_driver);
 }
 
 static void __exit cyblafb_exit(void)