Skip to content

Commit 7ad4384

Browse files
Zhang Zekunthierryreding
authored andcommitted
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: f68ba69 ("drm/tegra: dc: Link DC1 to DC0 on Tegra20") Signed-off-by: Zhang Zekun <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent bbdca2d commit 7ad4384

File tree

1 file changed

+3
-1
lines changed
  • drivers/gpu/drm/tegra

1 file changed

+3
-1
lines changed

drivers/gpu/drm/tegra/dc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3205,8 +3205,10 @@ static int tegra_dc_probe(struct platform_device *pdev)
32053205
usleep_range(2000, 4000);
32063206

32073207
err = reset_control_assert(dc->rst);
3208-
if (err < 0)
3208+
if (err < 0) {
3209+
clk_disable_unprepare(dc->clk);
32093210
return err;
3211+
}
32103212

32113213
usleep_range(2000, 4000);
32123214

0 commit comments

Comments
 (0)