]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ast: Managed device release
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 30 Jul 2020 13:52:06 +0000 (15:52 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 3 Aug 2020 07:05:00 +0000 (09:05 +0200)
commit248c22ec17b75116eed9ad976aaf7469c3e1a8c0
tree315ee5445a9b730048c97846ee01bb005e8a4903
parenteda1fc66eeae4963b6d24b1e9e9697cffc41e903
drm/ast: Managed device release

This turns the ast's device cleanup code into a managed release helper
function. Note that the code uses devres helpers. The release function
switches the device back to VGA mode and therefore runs during HW device
cleanup; not at DRM device cleanup.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200730135206.30239-10-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_drv.c
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_main.c