From: Javier Martinez Canillas Date: Fri, 17 Dec 2021 00:37:23 +0000 (+0100) Subject: drm/fsl-dcu: Use drm_module_platform_driver() to register the driver X-Git-Tag: v6.6.17~3937^2~23^2~3165 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f4b5091def94d95bdae0ff092a3e4a9d77cb03f4;p=platform%2Fkernel%2Flinux-rpi.git drm/fsl-dcu: Use drm_module_platform_driver() to register the driver The macro calls to a DRM specific platform driver init handler that checks whether the driver is allowed to be registered or not. Signed-off-by: Javier Martinez Canillas Acked-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20211217003752.3946210-9-javierm@redhat.com --- diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c index 660fe57..7a503bf 100644 --- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c +++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -368,7 +369,7 @@ static struct platform_driver fsl_dcu_drm_platform_driver = { }, }; -module_platform_driver(fsl_dcu_drm_platform_driver); +drm_module_platform_driver(fsl_dcu_drm_platform_driver); MODULE_DESCRIPTION("Freescale DCU DRM Driver"); MODULE_LICENSE("GPL");