Commit 399bbfef authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: remove pci_module_init() usage from drivers/pci/hotplug/*

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 58a554ea
......@@ -283,7 +283,7 @@ static int __init zt5550_init(void)
if(!r)
return -EBUSY;
return pci_module_init(&zt5550_hc_driver);
return pci_register_driver(&zt5550_hc_driver);
}
static void __exit
......
......@@ -1487,8 +1487,8 @@ static int __init cpqhpc_init(void)
cpqhp_debug = debug;
info (DRIVER_DESC " version: " DRIVER_VERSION "\n");
result = pci_module_init(&cpqhpc_driver);
dbg("pci_module_init = %d\n", result);
result = pci_register_driver(&cpqhpc_driver);
dbg("pci_register_driver = %d\n", result);
return result;
}
......
......@@ -1246,7 +1246,7 @@ int ibmphp_register_pci (void)
list_for_each (tmp, &ebda_hpc_head) {
ctrl = list_entry (tmp, struct controller, ebda_hpc_list);
if (ctrl->ctlr_type == 1) {
rc = pci_module_init (&ibmphp_driver);
rc = pci_register_driver(&ibmphp_driver);
break;
}
}
......
......@@ -602,8 +602,8 @@ static int __init pcied_init(void)
retval = pciehprm_init(PCI);
if (!retval) {
retval = pci_module_init(&pcie_driver);
dbg("pci_module_init = %d\n", retval);
retval = pci_register_driver(&pcie_driver);
dbg("pci_register_driver = %d\n", retval);
info(DRIVER_DESC " version: " DRIVER_VERSION "\n");
}
......
......@@ -599,8 +599,8 @@ static int __init shpcd_init(void)
retval = shpchprm_init(PCI);
if (!retval) {
retval = pci_module_init(&shpc_driver);
dbg("%s: pci_module_init = %d\n", __FUNCTION__, retval);
retval = pci_register_driver(&shpc_driver);
dbg("%s: pci_register_driver = %d\n", __FUNCTION__, retval);
info(DRIVER_DESC " version: " DRIVER_VERSION "\n");
}
......
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