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: howlett/maple/20220722_2~936^2~14^2~135 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=fad5453444fd95fb63e3cb6033c2489b6d9f4f14;p=users%2Fjedix%2Flinux-maple.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 ac37053412a1..824b510e337b 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");