drm/tegra: rgb: Fix some error handling paths in tegra_dc_rgb_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 2 Sep 2023 15:22:11 +0000 (17:22 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 14 Dec 2023 17:39:10 +0000 (18:39 +0100)
commitbc456b5d93dbfdbd89f2a036f4f3d8026595f9e4
treecbe690684b48c908189bb6d4456450e14d4af8eb
parent643ae131b8598fb2940c92c7d23fe62823a119c8
drm/tegra: rgb: Fix some error handling paths in tegra_dc_rgb_probe()

If an error occurs after calling tegra_output_probe(),
tegra_output_remove() should be called as already done in the remove
function.

Fixes: 59d29c0ec93f ("drm/tegra: Allocate resources at probe time")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/0001f61eb89048bc36241629b564195689cf54b6.1693667005.git.christophe.jaillet@wanadoo.fr
drivers/gpu/drm/tegra/rgb.c