]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:34:00 +0000 (13:34 +0100)
commit91a45b7f396bc9c9698527f5e6c7b48f66087e41
tree47bec4c4c76b5367d2c62f3da0423f75a8a274c0
parent5f4ef6ab6f59e06d164b8bebd3f8e5dedb0fcba8
drm/sun4i: fix missing component unbind on bind errors

commit 5622a01b987fa52bf7308a379a435f35d4f1df3e upstream.

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

Fixes: e656da9b8498 ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/sun4i/sun4i_drv.c