drm/hisilicon/kirin: Use drm_module_platform_driver() to register the driver
authorJavier Martinez Canillas <javierm@redhat.com>
Fri, 17 Dec 2021 00:37:24 +0000 (01:37 +0100)
committerJavier Martinez Canillas <javierm@redhat.com>
Thu, 27 Jan 2022 18:15:46 +0000 (19:15 +0100)
commitfdb5713c7d6f6d60bf23596eafb1ada154869ae9
tree34c796f7c696b6a77b82a1a7e1c24669481d8c56
parentf4b5091def94d95bdae0ff092a3e4a9d77cb03f4
drm/hisilicon/kirin: 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-10-javierm@redhat.com
drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c