clk: tegra: tegra124-emc: Fix clock imbalance in emc_set_timing()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 18 May 2021 04:42:47 +0000 (12:42 +0800)
committerThierry Reding <treding@nvidia.com>
Wed, 2 Jun 2021 09:08:00 +0000 (11:08 +0200)
commitf13570e7e830ca4fbf4869015af8492b8918445e
treeae444eacf681904c6b8ca6494fc85f78831eb08b
parente848edae31263d2119e7cde779d754439277fbba
clk: tegra: tegra124-emc: Fix clock imbalance in emc_set_timing()

After calling clk_prepare_enable(), clk_disable_unprepare() needs
be called when prepare_timing_change() failed.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/tegra/clk-tegra124-emc.c