drm/sun4i: fix missing component unbind on bind errors
authorJohan Hovold <johan+linaro@kernel.org>
Mon, 6 Mar 2023 10:32:42 +0000 (11:32 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 7 Mar 2023 15:11:02 +0000 (16:11 +0100)
commitc22f2ff8724b49dce2ae797e9fbf4bc0fa91112f
tree38c0a1d53e73d684429919d6fe358c6e33518895
parent5c8cf1664f288098a971a1d1e65716a2b6a279e1
drm/sun4i: fix missing component unbind on bind errors

Make sure to unbind all subcomponents when binding the aggregate device
fails.

Fixes: 9026e0d122ac ("drm: Add Allwinner A10 Display Engine support")
Cc: stable@vger.kernel.org # 4.7
Cc: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20230306103242.4775-1-johan+linaro@kernel.org
drivers/gpu/drm/sun4i/sun4i_drv.c