提交 b2a2f708 编写于 作者: T Tomas Winkler 提交者: Greg Kroah-Hartman

watchdog: mei_wdt: use module_mei_cl_driver macro

Replace boilerplate driver registration with module_mei_cl_driver macro.
Signed-off-by: NTomas Winkler <tomas.winkler@intel.com>
Acked-by: NGuenter Roeck <linux@roeck-us.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 5be149bd
...@@ -699,25 +699,7 @@ static struct mei_cl_driver mei_wdt_driver = { ...@@ -699,25 +699,7 @@ static struct mei_cl_driver mei_wdt_driver = {
.remove = mei_wdt_remove, .remove = mei_wdt_remove,
}; };
static int __init mei_wdt_init(void) module_mei_cl_driver(mei_wdt_driver);
{
int ret;
ret = mei_cldev_driver_register(&mei_wdt_driver);
if (ret) {
pr_err(KBUILD_MODNAME ": module registration failed\n");
return ret;
}
return 0;
}
static void __exit mei_wdt_exit(void)
{
mei_cldev_driver_unregister(&mei_wdt_driver);
}
module_init(mei_wdt_init);
module_exit(mei_wdt_exit);
MODULE_AUTHOR("Intel Corporation"); MODULE_AUTHOR("Intel Corporation");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册