From: Javier Martinez Canillas Date: Fri, 17 Dec 2021 00:37:30 +0000 (+0100) Subject: drm/stm: Use drm_module_platform_driver() to register the driver X-Git-Tag: v6.6.17~3937^2~23^2~3159 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba497a551a4907f6a9a0ca70e203f2fbe223f258;p=platform%2Fkernel%2Flinux-rpi.git drm/stm: 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-16-javierm@redhat.com --- diff --git a/drivers/gpu/drm/stm/drv.c b/drivers/gpu/drm/stm/drv.c index 9f441aa..0da7cce 100644 --- a/drivers/gpu/drm/stm/drv.c +++ b/drivers/gpu/drm/stm/drv.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -241,7 +242,7 @@ static struct platform_driver stm_drm_platform_driver = { }, }; -module_platform_driver(stm_drm_platform_driver); +drm_module_platform_driver(stm_drm_platform_driver); MODULE_AUTHOR("Philippe Cornu "); MODULE_AUTHOR("Yannick Fertre ");