提交 3bdec670 编写于 作者: A Axel Lin 提交者: Guenter Roeck

hwmon: (ibmpowernv) Convert to module_platform_driver

Use module_platform_driver to simplify the code a bit.
Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
上级 8de303ba
......@@ -318,19 +318,8 @@ static struct platform_driver ibmpowernv_driver = {
},
};
static int __init ibmpowernv_init(void)
{
return platform_driver_register(&ibmpowernv_driver);
}
static void __exit ibmpowernv_exit(void)
{
platform_driver_unregister(&ibmpowernv_driver);
}
module_platform_driver(ibmpowernv_driver);
MODULE_AUTHOR("Neelesh Gupta <neelegup@linux.vnet.ibm.com>");
MODULE_DESCRIPTION("IBM POWERNV platform sensors");
MODULE_LICENSE("GPL");
module_init(ibmpowernv_init);
module_exit(ibmpowernv_exit);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册