提交 d1d6da8f 编写于 作者: R Richard Knutsson 提交者: Greg Kroah-Hartman

[PATCH] arch: Replace pci_module_init() with pci_register_driver()

Replace obsolete pci_module_init() with pci_register_driver().
Signed-off-by: NRichard Knutsson <ricknu-0@student.ltu.se>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 065c6359
......@@ -143,7 +143,7 @@ static int __init scx200_init(void)
{
printk(KERN_INFO NAME ": NatSemi SCx200 Driver\n");
return pci_module_init(&scx200_pci_driver);
return pci_register_driver(&scx200_pci_driver);
}
static void __exit scx200_cleanup(void)
......
......@@ -561,7 +561,7 @@ static int __devinit vrc4173_init(void)
{
int err;
err = pci_module_init(&vrc4173_driver);
err = pci_register_driver(&vrc4173_driver);
if (err < 0)
return err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册