Commit 4eda21d6 authored by Qiang Yu's avatar Qiang Yu

drm/lima: use module_platform_driver helper

Simplify module init/exit with module_platform_driver.
Tested-by: default avatarBhushan Shah <bshah@kde.org>
Reviewed-by: default avatarVasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: default avatarQiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200421133551.31481-2-yuq825@gmail.com
parent 2ce216ed
...@@ -460,17 +460,7 @@ static struct platform_driver lima_platform_driver = { ...@@ -460,17 +460,7 @@ static struct platform_driver lima_platform_driver = {
}, },
}; };
static int __init lima_init(void) module_platform_driver(lima_platform_driver);
{
return platform_driver_register(&lima_platform_driver);
}
module_init(lima_init);
static void __exit lima_exit(void)
{
platform_driver_unregister(&lima_platform_driver);
}
module_exit(lima_exit);
MODULE_AUTHOR("Lima Project Developers"); MODULE_AUTHOR("Lima Project Developers");
MODULE_DESCRIPTION("Lima DRM Driver"); MODULE_DESCRIPTION("Lima DRM Driver");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment