aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/ipmi
diff options
context:
space:
mode:
authorCorey Minyard <minyard@acm.org>2006-12-06 23:41:11 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 11:39:47 -0500
commit168b35a7f67c5a8189e6b92780dfb5262604057c (patch)
tree3d98c563aaed7b7e50d09b58a9b2b82d477d3d42 /drivers/char/ipmi
parent7d8ba9669a28f650001093ebbb6ecc3b0a72926f (diff)
[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>
Diffstat (limited to 'drivers/char/ipmi')
-rw-r--r--drivers/char/ipmi/ipmi_si_intf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
index 8b36b5036391..c7de2e86a6dc 100644
--- a/drivers/char/ipmi/ipmi_si_intf.c
+++ b/drivers/char/ipmi/ipmi_si_intf.c
@@ -2774,7 +2774,12 @@ static __devinit int init_ipmi_si(void)
2774#endif 2774#endif
2775 2775
2776#ifdef CONFIG_PCI 2776#ifdef CONFIG_PCI
2777 pci_module_init(&ipmi_pci_driver); 2777 rv = pci_register_driver(&ipmi_pci_driver);
2778 if (rv){
2779 printk(KERN_ERR
2780 "init_ipmi_si: Unable to register PCI driver: %d\n",
2781 rv);
2782 }
2778#endif 2783#endif
2779 2784
2780 if (si_trydefaults) { 2785 if (si_trydefaults) {