diff options
author | Christian Krafft <krafft@de.ibm.com> | 2007-05-12 13:37:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-12 13:55:40 -0400 |
commit | 10fb62e5b72c2485c3e0efd8b103254c0d087676 (patch) | |
tree | 967bad39b01a7927ddbf6571b18ee5fcef8506c1 | |
parent | 8fe1425a60fdf6c51a41b95542416d7124587c34 (diff) |
IPMI: Add PPC openfirmware unregister
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index 4769cc26880..78e1b962fe3 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c | |||
@@ -2974,6 +2974,10 @@ static __devinit int init_ipmi_si(void) | |||
2974 | #ifdef CONFIG_PCI | 2974 | #ifdef CONFIG_PCI |
2975 | pci_unregister_driver(&ipmi_pci_driver); | 2975 | pci_unregister_driver(&ipmi_pci_driver); |
2976 | #endif | 2976 | #endif |
2977 | |||
2978 | #ifdef CONFIG_PPC_OF | ||
2979 | of_unregister_platform_driver(&ipmi_of_platform_driver); | ||
2980 | #endif | ||
2977 | driver_unregister(&ipmi_driver); | 2981 | driver_unregister(&ipmi_driver); |
2978 | printk("ipmi_si: Unable to find any System Interface(s)\n"); | 2982 | printk("ipmi_si: Unable to find any System Interface(s)\n"); |
2979 | return -ENODEV; | 2983 | return -ENODEV; |