* [PATCH] IPMI: Add PPC openfirmware unregister
@ 2007-05-11 12:58 Corey Minyard
0 siblings, 0 replies; only message in thread
From: Corey Minyard @ 2007-05-11 12:58 UTC (permalink / raw)
To: Linux Kernel, Andrew Morton; +Cc: Christian Krafft
From: Christian Krafft <krafft@de.ibm.com>
When trying to load the ipmi_si module on a powerpc with
no BMC (baseboard management controller) the driver failes to
load correctly, but doesn't unregister itself from of_platform.
So, on a second modprobe the kernel crashes.
This patch adds the missing unregister call.
Signed-off-by: Christian Krafft <krafft@de.ibm.com>
Signed-off-by: Corey Minyard <minyard@acm.org>
Index: linux-2.6.21/drivers/char/ipmi/ipmi_si_intf.c
===================================================================
--- linux-2.6.21.orig/drivers/char/ipmi/ipmi_si_intf.c
+++ linux-2.6.21/drivers/char/ipmi/ipmi_si_intf.c
@@ -2924,6 +2924,10 @@ static __devinit int init_ipmi_si(void)
#ifdef CONFIG_PCI
pci_unregister_driver(&ipmi_pci_driver);
#endif
+
+#ifdef CONFIG_PPC_OF
+ of_unregister_platform_driver(&ipmi_of_platform_driver);
+#endif
driver_unregister(&ipmi_driver);
printk("ipmi_si: Unable to find any System Interface(s)\n");
return -ENODEV;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-11 12:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-11 12:58 [PATCH] IPMI: Add PPC openfirmware unregister 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®