Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

Qiang Yu 4eda21d6 2ce216ed

+1 -11
+1 -11
drivers/gpu/drm/lima/lima_drv.c
··· 460 460 }, 461 461 }; 462 462 463 - static int __init lima_init(void) 464 - { 465 - return platform_driver_register(&lima_platform_driver); 466 - } 467 - module_init(lima_init); 468 - 469 - static void __exit lima_exit(void) 470 - { 471 - platform_driver_unregister(&lima_platform_driver); 472 - } 473 - module_exit(lima_exit); 463 + module_platform_driver(lima_platform_driver); 474 464 475 465 MODULE_AUTHOR("Lima Project Developers"); 476 466 MODULE_DESCRIPTION("Lima DRM Driver");