[PATCH 5/6] drivers/*rest*: Replace pci_module_init() with pci_register_driver()
From: Richard Knutsson
Date: Tue Nov 29 2005 - 19:00:26 EST
From: Richard Knutsson <ricknu-0@xxxxxxxxxxxxxx>
Replace obsolete pci_module_init() with pci_register_driver().
Signed-off-by: Richard Knutsson <ricknu-0@xxxxxxxxxxxxxx>
---
parport/parport_serial.c | 2 +-
pcmcia/vrc4173_cardu.c | 2 +-
serial/serial_txx9.c | 2 +-
video/cyblafb.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff -Narup a/drivers/serial/serial_txx9.c b/drivers/serial/serial_txx9.c
--- a/drivers/serial/serial_txx9.c 2005-11-29 11:04:52.000000000 +0100
+++ b/drivers/serial/serial_txx9.c 2005-11-29 16:35:25.000000000 +0100
@@ -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;
diff -Narup a/drivers/video/cyblafb.c b/drivers/video/cyblafb.c
--- a/drivers/video/cyblafb.c 2005-11-29 11:09:00.000000000 +0100
+++ b/drivers/video/cyblafb.c 2005-11-29 16:46:18.000000000 +0100
@@ -1440,7 +1440,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)
diff -Narup a/drivers/parport/parport_serial.c b/drivers/parport/parport_serial.c
--- a/drivers/parport/parport_serial.c 2005-11-29 11:04:52.000000000 +0100
+++ b/drivers/parport/parport_serial.c 2005-11-29 16:33:13.000000000 +0100
@@ -464,7 +464,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)
diff -Narup a/drivers/pcmcia/vrc4173_cardu.c b/drivers/pcmcia/vrc4173_cardu.c
--- a/drivers/pcmcia/vrc4173_cardu.c 2005-11-29 11:04:48.000000000 +0100
+++ b/drivers/pcmcia/vrc4173_cardu.c 2005-11-29 16:32:23.000000000 +0100
@@ -604,7 +604,7 @@ static int __devinit vrc4173_cardu_init(
{
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)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/