drm/exynos: convert drivers/gpu/drm/exynos/* to use module_platform_driver()
Subsystems (3)
PATCH 1/1 drm/exynos: convert drivers/gpu/drm/exynos/* to use module_platform_driver()
This patch converts the drivers in drivers/gpu/drm/exynos/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler.
Cc Inki Dae <[email protected]>
Cc Joonyoung Shim <[email protected]>
Cc Seung-Woo Kim <[email protected]>
Signed-off-by Axel Lin <[email protected]>
--- drivers/gpu/drm/exynos/exynos_drm_drv.c | 17 +---------------- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 13 +------------ 2 files changed, 2 insertions(+), 28 deletions(-)
drivers/gpu/drm/exynos/exynos_drm_drv.c +1 -16
@@ -220,22 +220,7 @@ static struct platform_driver exynos_drm_platform_driver = { }, }; -static int __init exynos_drm_init (void ) -{ -DRM_DEBUG_DRIVER ("%s\n" , __FILE__); - -return platform_driver_register (&exynos_drm_platform_driver); -} - -static void __exit exynos_drm_exit(void) -{ -DRM_DEBUG_DRIVER ("%s\n" , __FILE__); - -platform_driver_unregister (&exynos_drm_platform_driver); -} - -module_init (exynos_drm_init); -module_exit (exynos_drm_exit); +module_platform_driver (exynos_drm_platform_driver);MODULE_AUTHOR ("Inki Dae <[email protected]>" );MODULE_AUTHOR ("Joonyoung Shim <[email protected]>" );
drivers/gpu/drm/exynos/exynos_drm_fimd.c +1 -12
@@ -792,18 +792,7 @@ static struct platform_driver fimd_driver = { }, }; -static int __init fimd_init (void ) -{ -return platform_driver_register (&fimd_driver); -} - -static void __exit fimd_exit(void) -{ -platform_driver_unregister (&fimd_driver); -} - -module_init (fimd_init); -module_exit (fimd_exit); +module_platform_driver (fimd_driver);MODULE_AUTHOR ("Joonyoung Shim <[email protected]>" );MODULE_AUTHOR ("Inki Dae <[email protected]>" );
Signature · 1 line
1.7.5.4