From: Javier Martinez Canillas Date: Fri, 17 Dec 2021 00:37:35 +0000 (+0100) Subject: drm/xlnx: Use drm_module_platform_driver() to register the driver X-Git-Tag: v6.6.17~3937^2~23^2~3154 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fad5453444fd95fb63e3cb6033c2489b6d9f4f14;p=platform%2Fkernel%2Flinux-rpi.git drm/xlnx: 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-21-javierm@redhat.com --- diff --git a/drivers/gpu/drm/xlnx/zynqmp_dpsub.c b/drivers/gpu/drm/xlnx/zynqmp_dpsub.c index ac37053..824b510 100644 --- a/drivers/gpu/drm/xlnx/zynqmp_dpsub.c +++ b/drivers/gpu/drm/xlnx/zynqmp_dpsub.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -286,7 +287,7 @@ static struct platform_driver zynqmp_dpsub_driver = { }, }; -module_platform_driver(zynqmp_dpsub_driver); +drm_module_platform_driver(zynqmp_dpsub_driver); MODULE_AUTHOR("Xilinx, Inc."); MODULE_DESCRIPTION("ZynqMP DP Subsystem Driver");