From: Javier Martinez Canillas Date: Fri, 17 Dec 2021 00:37:31 +0000 (+0100) Subject: drm/sun4i: Use drm_module_platform_driver() to register the driver X-Git-Tag: v6.6.17~3937^2~23^2~3158 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab41e6aa9128ef5b55e109e73cb3edaa5ca02b0d;p=platform%2Fkernel%2Flinux-rpi.git drm/sun4i: 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-17-javierm@redhat.com --- diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/sun4i/sun4i_drv.c index b630614..a3fd441 100644 --- a/drivers/gpu/drm/sun4i/sun4i_drv.c +++ b/drivers/gpu/drm/sun4i/sun4i_drv.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -441,7 +442,7 @@ static struct platform_driver sun4i_drv_platform_driver = { .pm = &sun4i_drv_drm_pm_ops, }, }; -module_platform_driver(sun4i_drv_platform_driver); +drm_module_platform_driver(sun4i_drv_platform_driver); MODULE_AUTHOR("Boris Brezillon "); MODULE_AUTHOR("Maxime Ripard ");