]> git.baikalelectronics.ru Git - kernel.git/commit
drm/cirrus: add drm_driver.release callback.
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 11 Feb 2020 13:55:22 +0000 (14:55 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 12 Feb 2020 09:24:08 +0000 (10:24 +0100)
commit2b2886f036a586d27da3a5ef5b88240ba96b0a15
tree38ad631847d2386faefa9c56c7b6b855f2930b1e
parentb3ca73e21d11ee9e6846195e094ac86d84387e7c
drm/cirrus: add drm_driver.release callback.

Move final cleanups from cirrus_pci_remove() to the new callback.
Add drm_atomic_helper_shutdown() call to cirrus_pci_remove().

Use drm_dev_{enter,exit,unplug} to avoid touching hardware after
device removal.

v4: add changelog.
v3: use drm_dev*.
v2: stop touching hardware after pci_remove().

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20200211135522.23654-1-kraxel@redhat.com
drivers/gpu/drm/cirrus/cirrus.c