Commit 9f9dab44 authored by Chas Williams's avatar Chas Williams Committed by David S. Miller

[ATM]: Convert from pci_module_init to pci_register_driver

Signed-off-by: default avatarChristophe Lucas <c.lucas@ifrance.com>
Signed-off-by: default avatarDomen Puncer <domen@coderock.org>
Signed-off-by: default avatarChas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ef3080a1
......@@ -2447,7 +2447,7 @@ static int __init amb_module_init (void)
amb_check_args();
// get the juice
return pci_module_init(&amb_driver);
return pci_register_driver(&amb_driver);
}
/********** module exit **********/
......
......@@ -2034,7 +2034,7 @@ static int __init firestream_init_module (void)
int error;
func_enter ();
error = pci_module_init(&firestream_driver);
error = pci_register_driver(&firestream_driver);
func_exit ();
return error;
}
......
......@@ -3079,7 +3079,7 @@ static struct pci_driver he_driver = {
static int __init he_init(void)
{
return pci_module_init(&he_driver);
return pci_register_driver(&he_driver);
}
static void __exit he_cleanup(void)
......
......@@ -2938,7 +2938,7 @@ static int __init hrz_module_init (void) {
hrz_check_args();
// get the juice
return pci_module_init(&hrz_driver);
return pci_register_driver(&hrz_driver);
}
/********** module exit **********/
......
......@@ -3276,7 +3276,7 @@ static int __init ia_module_init(void)
{
int ret;
ret = pci_module_init(&ia_driver);
ret = pci_register_driver(&ia_driver);
if (ret >= 0) {
ia_timer.expires = jiffies + 3*HZ;
add_timer(&ia_timer);
......
......@@ -2746,7 +2746,7 @@ static int __init lanai_module_init(void)
{
int x;
x = pci_module_init(&lanai_driver);
x = pci_register_driver(&lanai_driver);
if (x != 0)
printk(KERN_ERR DEV_LABEL ": no adapter found\n");
return x;
......
......@@ -381,7 +381,7 @@ static int __init nicstar_init(void)
XPRINTK("nicstar: nicstar_init() called.\n");
error = pci_module_init(&nicstar_driver);
error = pci_register_driver(&nicstar_driver);
TXPRINTK("nicstar: TX debug enabled.\n");
RXPRINTK("nicstar: RX debug enabled.\n");
......
......@@ -1639,7 +1639,7 @@ static struct pci_driver zatm_driver = {
static int __init zatm_init_module(void)
{
return pci_module_init(&zatm_driver);
return pci_register_driver(&zatm_driver);
}
module_init(zatm_init_module);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment