Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Christian Krafft and committed by
Linus Torvalds
10fb62e5 8fe1425a

+4
+4
drivers/char/ipmi/ipmi_si_intf.c
··· 2974 2974 #ifdef CONFIG_PCI 2975 2975 pci_unregister_driver(&ipmi_pci_driver); 2976 2976 #endif 2977 + 2978 + #ifdef CONFIG_PPC_OF 2979 + of_unregister_platform_driver(&ipmi_of_platform_driver); 2980 + #endif 2977 2981 driver_unregister(&ipmi_driver); 2978 2982 printk("ipmi_si: Unable to find any System Interface(s)\n"); 2979 2983 return -ENODEV;