[Linux-parport] [PATCH] drivers/parport/*: convert to pci_register_driver

Christophe Lucas c.lucas at ifrance.com
Tue Feb 8 11:30:54 EST 2005


Hi,

Description:
convert from pci_module_init to pci_register_driver
(from:http://kerneljanitors.org/TODO).

Signed-off-by: Christophe Lucas <c.lucas at ifrance.com>
-- 
Christophe
-------------- next part --------------
diff -urpN -X /work/users/dontdiff linux-2.6.11-rc3-vanilla/drivers/parport/parport_serial.c linux-2.6.11-rc3/drivers/parport/parport_serial.c
--- linux-2.6.11-rc3-vanilla/drivers/parport/parport_serial.c	2004-12-24 22:35:28.000000000 +0100
+++ linux-2.6.11-rc3/drivers/parport/parport_serial.c	2005-02-07 09:40:03.000000000 +0100
@@ -420,7 +420,7 @@ static struct pci_driver parport_serial_
 
 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)


More information about the Linux-parport mailing list