提交 168b35a7 编写于 作者: C Corey Minyard 提交者: Linus Torvalds

[PATCH] IPMI: fix pci warning

Change pci_module_init() to the new interface, and check the return code to
avoid warnings and give the user useful information if this fails.
Signed-off-by: NCorey Minyard <minyard@acm.org>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 7d8ba966
......@@ -2774,7 +2774,12 @@ static __devinit int init_ipmi_si(void)
#endif
#ifdef CONFIG_PCI
pci_module_init(&ipmi_pci_driver);
rv = pci_register_driver(&ipmi_pci_driver);
if (rv){
printk(KERN_ERR
"init_ipmi_si: Unable to register PCI driver: %d\n",
rv);
}
#endif
if (si_trydefaults) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册