drm/tegra: output: Fix missing i2c_put_adapter() in the error handling paths of tegra...
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 2 Sep 2023 15:22:13 +0000 (17:22 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 14 Dec 2023 17:39:42 +0000 (18:39 +0100)
commit2db4578ef6ffb2b52115ca0ebf897b60ec559556
treebca1907fbc2162eb64cc6a73980b1f9e5c013828
parent45c8034db47842b25a3ab6139d71e13b4e67b9b3
drm/tegra: output: Fix missing i2c_put_adapter() in the error handling paths of tegra_output_probe()

If an error occurs after a successful of_get_i2c_adapter_by_node() call, it
should be undone by a corresponding i2c_put_adapter().

Add the missing i2c_put_adapter() call.

Fixes: 9be7d864cf07 ("drm/tegra: Implement panel support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/b38604178991e1f08b2cda219103be266be2d680.1693667005.git.christophe.jaillet@wanadoo.fr
drivers/gpu/drm/tegra/output.c