[SCSI] megaraid: pci_module_init to pci_register_driver
Convert pci_module_init() to pci_register_driver(). Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se> Acked-by: "Patro, Sumant" <Sumant.Patro@lsi.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
930e99bd13
commit
4520b0089b
1 changed files with 1 additions and 1 deletions
|
@ -5072,7 +5072,7 @@ static int __init megaraid_init(void)
|
||||||
"megaraid: failed to create megaraid root\n");
|
"megaraid: failed to create megaraid root\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
error = pci_module_init(&megaraid_pci_driver);
|
error = pci_register_driver(&megaraid_pci_driver);
|
||||||
if (error) {
|
if (error) {
|
||||||
#ifdef CONFIG_PROC_FS
|
#ifdef CONFIG_PROC_FS
|
||||||
remove_proc_entry("megaraid", &proc_root);
|
remove_proc_entry("megaraid", &proc_root);
|
||||||
|
|
Loading…
Add table
Reference in a new issue