Skip to content

Commit

Permalink
drm/tegra: Add missing clk_disable_unprepare() in tegra_dc_probe()
Browse files Browse the repository at this point in the history
[ Upstream commit 7ad4384 ]

Add the missing clk_disable_unprepare() before return from
tegra_dc_probe() in the error handling path.

Fixes: f68ba69 ("drm/tegra: dc: Link DC1 to DC0 on Tegra20")
Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Zhang Zekun authored and gregkh committed Dec 31, 2022
1 parent 2376d7f commit 41d7b82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/tegra/dc.c
Expand Up @@ -3022,8 +3022,10 @@ static int tegra_dc_probe(struct platform_device *pdev)
usleep_range(2000, 4000);

err = reset_control_assert(dc->rst);
if (err < 0)
if (err < 0) {
clk_disable_unprepare(dc->clk);
return err;
}

usleep_range(2000, 4000);

Expand Down

0 comments on commit 41d7b82

Please sign in to comment.