2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-16 01:04:08 +08:00

[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: Corey Minyard <minyard@acm.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Corey Minyard 2006-12-06 20:41:11 -08:00 committed by Linus Torvalds
parent 7d8ba9669a
commit 168b35a7f6

View File

@ -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) {