From: Javier Martinez Canillas Date: Fri, 17 Dec 2021 00:37:29 +0000 (+0100) Subject: drm/shmobile: Use drm_module_platform_driver() to register the driver X-Git-Tag: v6.6.17~3937^2~23^2~3160 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=233a32534513567c0daaecb0b92e8e6e18752060;p=platform%2Fkernel%2Flinux-rpi.git drm/shmobile: 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-15-javierm@redhat.com --- diff --git a/drivers/gpu/drm/shmobile/shmob_drm_drv.c b/drivers/gpu/drm/shmobile/shmob_drm_drv.c index 80078a9..731cbad 100644 --- a/drivers/gpu/drm/shmobile/shmob_drm_drv.c +++ b/drivers/gpu/drm/shmobile/shmob_drm_drv.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -295,7 +296,7 @@ static struct platform_driver shmob_drm_platform_driver = { }, }; -module_platform_driver(shmob_drm_platform_driver); +drm_module_platform_driver(shmob_drm_platform_driver); MODULE_AUTHOR("Laurent Pinchart "); MODULE_DESCRIPTION("Renesas SH Mobile DRM Driver");