Skip to content

Commit

Permalink
[PATCH] drivers/*rest*: Replace pci_module_init() with pci_register_d…
Browse files Browse the repository at this point in the history
…river()

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>
  • Loading branch information
Richard Knutsson authored and Greg Kroah-Hartman committed Jan 9, 2006
1 parent 4665472 commit 93b4768
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/hwmon/vt8231.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion drivers/parport/parport_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion drivers/pcmcia/vrc4173_cardu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/serial_txx9.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions drivers/video/cyblafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 93b4768

Please sign in to comment.