Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/tegra: Add missing clk_disable_unprepare() in tegra_dc_probe()

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

Fixes: f68ba6912bd2 ("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>

authored by

Zhang Zekun and committed by
Thierry Reding
7ad4384d bbdca2d4

+3 -1
+3 -1
drivers/gpu/drm/tegra/dc.c
··· 3205 3205 usleep_range(2000, 4000); 3206 3206 3207 3207 err = reset_control_assert(dc->rst); 3208 - if (err < 0) 3208 + if (err < 0) { 3209 + clk_disable_unprepare(dc->clk); 3209 3210 return err; 3211 + } 3210 3212 3211 3213 usleep_range(2000, 4000); 3212 3214