diff options
author | Zhang Zekun <zhangzekun11@huawei.com> | 2022-08-02 10:50:50 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2022-11-25 16:14:58 +0100 |
commit | 7ad4384d53c67672a8720cdc2ef638d7d1710ab8 (patch) | |
tree | 6394494c6e742984db8729adf74cf16b7adb740a /drivers/gpu/drm/tegra/dc.c | |
parent | drm/tegra: Switch over to vmemdup_user() (diff) | |
download | linux-7ad4384d53c67672a8720cdc2ef638d7d1710ab8.tar.xz linux-7ad4384d53c67672a8720cdc2ef638d7d1710ab8.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/tegra/dc.c')
-rw-r--r-- | drivers/gpu/drm/tegra/dc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index bd0f60704467..a67453cee883 100644 --- a/drivers/gpu/drm/tegra/dc.c +++ b/drivers/gpu/drm/tegra/dc.c @@ -3205,8 +3205,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); |