From: Javier Martinez Canillas Date: Fri, 17 Dec 2021 00:37:26 +0000 (+0100) Subject: drm/kmb: Use drm_module_platform_driver() to register the driver X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1439e3bea7b1201a9461ffbff2a9d59f3e65dc1e;p=linux.git drm/kmb: 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-12-javierm@redhat.com --- diff --git a/drivers/gpu/drm/kmb/kmb_drv.c b/drivers/gpu/drm/kmb/kmb_drv.c index ed24243507731..76fef0880504e 100644 --- a/drivers/gpu/drm/kmb/kmb_drv.c +++ b/drivers/gpu/drm/kmb/kmb_drv.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -628,7 +629,7 @@ static struct platform_driver kmb_platform_driver = { }, }; -module_platform_driver(kmb_platform_driver); +drm_module_platform_driver(kmb_platform_driver); MODULE_AUTHOR("Intel Corporation"); MODULE_DESCRIPTION("Keembay Display driver");