Commit 9fadab72 authored by Miaoqian Lin's avatar Miaoqian Lin Committed by Mauro Carvalho Chehab

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: b4155d7d ("[media] exynos4-is: Ensure fimc-is clocks are not enabled until properly configured")
Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent d63fb98a
...@@ -140,7 +140,7 @@ static int fimc_is_enable_clocks(struct fimc_is *is) ...@@ -140,7 +140,7 @@ static int fimc_is_enable_clocks(struct fimc_is *is)
dev_err(&is->pdev->dev, "clock %s enable failed\n", dev_err(&is->pdev->dev, "clock %s enable failed\n",
fimc_is_clocks[i]); fimc_is_clocks[i]);
for (--i; i >= 0; i--) for (--i; i >= 0; i--)
clk_disable(is->clocks[i]); clk_disable_unprepare(is->clocks[i]);
return ret; return ret;
} }
pr_debug("enabled clock: %s\n", fimc_is_clocks[i]); pr_debug("enabled clock: %s\n", fimc_is_clocks[i]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment