* [PATCH 10/12] IPMI: fix pci warning
@ 2006-12-02 4:38 Corey Minyard
0 siblings, 0 replies; only message in thread
From: Corey Minyard @ 2006-12-02 4:38 UTC (permalink / raw)
To: Andrew Morton, Linux Kernel; +Cc: OpenIPMI Developers
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>
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)
#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) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-12-02 4:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-02 4:38 [PATCH 10/12] IPMI: fix pci warning Corey Minyard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®