drm: Provide platform module-init macro
authorJavier Martinez Canillas <javierm@redhat.com>
Wed, 22 Dec 2021 08:28:27 +0000 (09:28 +0100)
committerJavier Martinez Canillas <javierm@redhat.com>
Wed, 19 Jan 2022 17:40:18 +0000 (18:40 +0100)
commit09f137c320633d08b263c54c0782e91d55a6c09f
tree61720a46bb892ea8008e33444798ffabccb5b0a8
parent2075a734ed990c50b6c544c6256b0dc0b74b82ea
drm: Provide platform module-init macro

Provide a helper macro to register platform DRM drivers. The new
macro behaves like module_platform_driver() with an additional
test if DRM modesetting has been enabled.

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-7-javierm@redhat.com
include/drm/drm_module.h