drm/tegra: Add missing clk_disable_unprepare() in tegra_dc_probe()
[ Upstream commit7ad4384d53] Add the missing clk_disable_unprepare() before return from tegra_dc_probe() in the error handling path. Fixes:f68ba6912b("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
54ab127600
commit
cf2cbca714
@@ -2564,8 +2564,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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user