drm/vc4: crtc: Remove manual plane removal on error
authorMaxime Ripard <maxime@cerno.tech>
Wed, 22 Jun 2022 14:15:11 +0000 (16:15 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 7 Sep 2022 08:53:01 +0000 (10:53 +0200)
commit0b8337d592507160211b21498dfc84f288bb9bd4
tree409e7f802d0a742757684c452d2c12540a8078f2
parentdb6a6d5c339c34e0a90616da2763c8d1184ebf08
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>
drivers/gpu/drm/vc4/vc4_crtc.c