diff options
author | Qiang Yu <yuq825@gmail.com> | 2020-04-21 16:35:42 +0300 |
---|---|---|
committer | Qiang Yu <yuq825@gmail.com> | 2020-04-24 15:47:16 +0300 |
commit | 4eda21d61904f75cda7635b3c225b7141c2ef20c (patch) | |
tree | 1e3adba0d8710ceaffe1e69d8af8d69f9bd26842 /drivers/gpu/drm/lima/lima_drv.c | |
parent | 2ce216edf2c661fd9d2f5e19ce72fd80c25abc64 (diff) | |
download | linux-4eda21d61904f75cda7635b3c225b7141c2ef20c.tar.xz |
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
Diffstat (limited to 'drivers/gpu/drm/lima/lima_drv.c')
-rw-r--r-- | drivers/gpu/drm/lima/lima_drv.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/gpu/drm/lima/lima_drv.c b/drivers/gpu/drm/lima/lima_drv.c index 4e5dd75822c0..3d63d496cfc2 100644 --- a/drivers/gpu/drm/lima/lima_drv.c +++ b/drivers/gpu/drm/lima/lima_drv.c @@ -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"); |