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

drm/imx/dcss: Replace module initialization with DRM helpers

Replace module_platform_driver() with drm_module_platform_driver(). The
DRM macro respects drm_firmware_drivers_only() and fails if the flag has
been set.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20211222082831.196562-8-javierm@redhat.com

+2 -1
+2 -1
drivers/gpu/drm/imx/dcss/dcss-drv.c
··· 6 6 #include <linux/module.h> 7 7 #include <linux/kernel.h> 8 8 #include <linux/platform_device.h> 9 + #include <drm/drm_module.h> 9 10 #include <drm/drm_of.h> 10 11 11 12 #include "dcss-dev.h" ··· 132 131 }, 133 132 }; 134 133 135 - module_platform_driver(dcss_platform_driver); 134 + drm_module_platform_driver(dcss_platform_driver); 136 135 137 136 MODULE_AUTHOR("Laurentiu Palcu <laurentiu.palcu@nxp.com>"); 138 137 MODULE_DESCRIPTION("DCSS driver for i.MX8MQ");