提交 40c935ae 编写于 作者: S Srinivas Kandagatla 提交者: Benjamin Herrenschmidt

powerpc/sysdev: Use module_platform_driver macro

This patch removes some code duplication by using
module_platform_driver.
Signed-off-by: NSrinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 b2bb65f6
......@@ -214,18 +214,7 @@ static struct platform_driver pmi_of_platform_driver = {
.of_match_table = pmi_match,
},
};
static int __init pmi_module_init(void)
{
return platform_driver_register(&pmi_of_platform_driver);
}
module_init(pmi_module_init);
static void __exit pmi_module_exit(void)
{
platform_driver_unregister(&pmi_of_platform_driver);
}
module_exit(pmi_module_exit);
module_platform_driver(pmi_of_platform_driver);
int pmi_send_message(pmi_message_t msg)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册