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

drm/komeda: 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>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20211222082831.196562-9-javierm@redhat.com

+2 -1
+2 -1
drivers/gpu/drm/arm/display/komeda/komeda_drv.c
··· 9 9 #include <linux/platform_device.h> 10 10 #include <linux/component.h> 11 11 #include <linux/pm_runtime.h> 12 + #include <drm/drm_module.h> 12 13 #include <drm/drm_of.h> 13 14 #include "komeda_dev.h" 14 15 #include "komeda_kms.h" ··· 199 198 }, 200 199 }; 201 200 202 - module_platform_driver(komeda_platform_driver); 201 + drm_module_platform_driver(komeda_platform_driver); 203 202 204 203 MODULE_AUTHOR("James.Qian.Wang <james.qian.wang@arm.com>"); 205 204 MODULE_DESCRIPTION("Komeda KMS driver");