OSDN Git Service

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)
commit02792a93103a99abc611e36cdeda9bcfa8924fd2
treec0741ba40e35ce6cdc12913b850428ac62effd41
parent77c5fb12061f2d8fa28bb0216c9a19a0a6f47ef7
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