]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: crtc: Remove manual plane removal on error
authorMaxime Ripard <maxime@cerno.tech>
Mon, 11 Jul 2022 17:38:48 +0000 (19:38 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 13 Jul 2022 08:46:07 +0000 (10:46 +0200)
commit53156c7d8c6c0a3de732539c9a203b76a48f046d
treec0741ba40e35ce6cdc12913b850428ac62effd41
parent49bc389928838b0832c599c272d20c37a103cd07
drm/vc4: crtc: Remove manual plane removal on error

When vc4_crtc_bind() fails after vc4_crtc_init() has been called, we have
a loop undoing the plane creation and calling destroy on each plane
registered and matching the possible_crtcs mask.

However, this is redundant with what drm_mode_config_cleanup() is doing, so
let's remove it.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220711173939.1132294-19-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_crtc.c