mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
drm/lima: use module_platform_driver helper
Simplify module init/exit with module_platform_driver. Tested-by: Bhushan Shah <bshah@kde.org> Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200421133551.31481-2-yuq825@gmail.com
This commit is contained in:
parent
2ce216edf2
commit
4eda21d619
@ -460,17 +460,7 @@ static struct platform_driver lima_platform_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __init lima_init(void)
|
||||
{
|
||||
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_platform_driver(lima_platform_driver);
|
||||
|
||||
MODULE_AUTHOR("Lima Project Developers");
|
||||
MODULE_DESCRIPTION("Lima DRM Driver");
|
||||
|
Loading…
Reference in New Issue
Block a user