drm/hisilicon/hibmc: Replace module initialization with DRM helpers
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 22 Dec 2021 08:28:26 +0000 (09:28 +0100)
committerJavier Martinez Canillas <javierm@redhat.com>
Wed, 19 Jan 2022 17:40:13 +0000 (18:40 +0100)
commit2075a734ed990c50b6c544c6256b0dc0b74b82ea
treeca981cbb74ee842e2a34e3724ec7405c2ff0bf27
parenta32762d1db4c13db53ab9005a24fe5465ab511f1
drm/hisilicon/hibmc: Replace module initialization with DRM helpers

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

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211222082831.196562-6-javierm@redhat.com
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c