From: Javier Martinez Canillas Date: Fri, 17 Dec 2021 00:37:27 +0000 (+0100) Subject: drm/meson: Use drm_module_platform_driver() to register the driver X-Git-Tag: v5.18-rc1~109^2~18^2~143 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=a9b19b0d707bf93d42e13c22d44eb5132d7cdbab;p=linux-block.git drm/meson: 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-13-javierm@redhat.com --- diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu/drm/meson/meson_drv.c index 26aeaf0ab86e..93a7a033a3e8 100644 --- a/drivers/gpu/drm/meson/meson_drv.c +++ b/drivers/gpu/drm/meson/meson_drv.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -542,7 +543,7 @@ static struct platform_driver meson_drm_platform_driver = { }, }; -module_platform_driver(meson_drm_platform_driver); +drm_module_platform_driver(meson_drm_platform_driver); MODULE_AUTHOR("Jasper St. Pierre "); MODULE_AUTHOR("Neil Armstrong ");