drm/gem-vram: Share code between GEM VRAM's _{prepare, cleanup}_fb()
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 17 May 2022 11:33:25 +0000 (13:33 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 19 May 2022 17:25:10 +0000 (19:25 +0200)
commit1c89b4b718168aa6cf136a984b474d663e4203b7
tree5e16b9329343083cca246b83b628cdbf9a49156b
parent746b9c62cc8614fa59c23f3332682b5e9e1d801c
drm/gem-vram: Share code between GEM VRAM's _{prepare, cleanup}_fb()

The error-recovery code in drm_gem_vram_plane_helper_prepare_fb() is of
the same pattern as drm_gem_vram_plane_helper_cleanup_fb(). Implement
both of them using an internal helper. No functional changes.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220517113327.26919-4-tzimmermann@suse.de
drivers/gpu/drm/drm_gem_vram_helper.c