IPMI: Add PPC openfirmware unregister
PATCH 1/1 IPMI: Add PPC openfirmware unregister
From: Christian Krafft <[email protected]>
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 <[email protected]>
Signed-off-by Corey Minyard <[email protected]>
drivers/char/ipmi/ipmi_si_intf.c +4 -0
@@ -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 ;