Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/fsl-dcu: 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 <javierm@redhat.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20211217003752.3946210-9-javierm@redhat.com

+2 -1
+2 -1
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c
··· 24 24 #include <drm/drm_fb_helper.h> 25 25 #include <drm/drm_gem_cma_helper.h> 26 26 #include <drm/drm_modeset_helper.h> 27 + #include <drm/drm_module.h> 27 28 #include <drm/drm_probe_helper.h> 28 29 #include <drm/drm_vblank.h> 29 30 ··· 369 368 }, 370 369 }; 371 370 372 - module_platform_driver(fsl_dcu_drm_platform_driver); 371 + drm_module_platform_driver(fsl_dcu_drm_platform_driver); 373 372 374 373 MODULE_DESCRIPTION("Freescale DCU DRM Driver"); 375 374 MODULE_LICENSE("GPL");