OSDN Git Service

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)
commitcff0adca1edd6eb2bc6116e4d83e442f372cca64
tree315ee5445a9b730048c97846ee01bb005e8a4903
parent4bc85b82c8ba5cfad6d750748d36e2b852fad80d
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