Skip to contentSkip to conversation

IPMI: fix pci warning

PATCH In review Corey Minyard 1 participant 1 message Dec 2, 2006 IPMI

lore
Share & tools
lore
#0 lore raw

PATCH 10/12 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.

drivers/char/ipmi/ipmi_si_intf.c +6 -1
Index: linux-2.6.19/drivers/char/ipmi/ipmi_si_intf.c
===================================================================
@@ -2827,7 +2827,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) {