mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 10:32:35 +00:00
media: exynos4-is: Change clk_disable to clk_disable_unprepare
The corresponding API for clk_prepare_enable is clk_disable_unprepare,
other than clk_disable.
Fix this by changing clk_disable to clk_disable_unprepare.
Fixes: b4155d7d5b
("[media] exynos4-is: Ensure fimc-is clocks are not enabled until properly configured")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
d63fb98afe
commit
9fadab72a6
@ -140,7 +140,7 @@ static int fimc_is_enable_clocks(struct fimc_is *is)
|
||||
dev_err(&is->pdev->dev, "clock %s enable failed\n",
|
||||
fimc_is_clocks[i]);
|
||||
for (--i; i >= 0; i--)
|
||||
clk_disable(is->clocks[i]);
|
||||
clk_disable_unprepare(is->clocks[i]);
|
||||
return ret;
|
||||
}
|
||||
pr_debug("enabled clock: %s\n", fimc_is_clocks[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user