drm/tegra: sor: Disable clocks on error in tegra_sor_init()
authorQinglang Miao <miaoqinglang@huawei.com>
Fri, 30 Oct 2020 01:34:24 +0000 (09:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Dec 2020 12:46:47 +0000 (13:46 +0100)
commitd022341d2218cc7b142b83ae514f4d186b68e8c0
tree01d668dd4ab1fef902cd6302d7075fb77d427204
parent8859f5899ab92da690d6287dd339805155fa4fb6
drm/tegra: sor: Disable clocks on error in tegra_sor_init()

[ Upstream commit bf3a3cdcad40e5928a22ea0fd200d17fd6d6308d ]

Fix the missing clk_disable_unprepare() before return from
tegra_sor_init() in the error handling case.

Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/tegra/sor.c