提交 44f56a39 编写于 作者: C Corey Minyard

ipmi:ssif: Only unregister the platform driver if it was registered

Otherwise you will get an error when the driver is removed if you
set trydmi=0.
Signed-off-by: NCorey Minyard <cminyard@mvista.com>
上级 55be8658
...@@ -2111,7 +2111,8 @@ static void cleanup_ipmi_ssif(void) ...@@ -2111,7 +2111,8 @@ static void cleanup_ipmi_ssif(void)
kfree(ssif_i2c_driver.address_list); kfree(ssif_i2c_driver.address_list);
platform_driver_unregister(&ipmi_driver); if (ssif_trydmi)
platform_driver_unregister(&ipmi_driver);
free_ssif_clients(); free_ssif_clients();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册