mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 20:48:49 +08:00
soc: qcom: ocmem: add missing clk_disable_unprepare() in ocmem_dev_probe()
Add clk_disable_unprepare(core_clk) when enable iface_clk failed.
Fixes: a7e12e7bda
("soc: qcom: ocmem: make iface clock optional")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20230802024855.2521895-1-yangyingliang@huawei.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
parent
23b45f8aab
commit
4d6e0a1bf8
@ -343,8 +343,10 @@ static int ocmem_dev_probe(struct platform_device *pdev)
|
||||
return dev_err_probe(ocmem->dev, ret, "Failed to enable core clock\n");
|
||||
|
||||
ret = clk_prepare_enable(ocmem->iface_clk);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
clk_disable_unprepare(ocmem->core_clk);
|
||||
return dev_err_probe(ocmem->dev, ret, "Failed to enable iface clock\n");
|
||||
}
|
||||
|
||||
if (qcom_scm_restore_sec_cfg_available()) {
|
||||
dev_dbg(dev, "configuring scm\n");
|
||||
|
Loading…
Reference in New Issue
Block a user