[lkml]   [2006]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[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

Signed-off-by: Corey Minyard <>

Index: linux-2.6.19/drivers/char/ipmi/ipmi_si_intf.c
--- linux-2.6.19.orig/drivers/char/ipmi/ipmi_si_intf.c
+++ linux-2.6.19/drivers/char/ipmi/ipmi_si_intf.c
@@ -2827,7 +2827,12 @@ static __devinit int init_ipmi_si(void)

- 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);
+ }

if (si_trydefaults) {
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2006-12-02 05:41    [from the cache]
©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site