]> git.baikalelectronics.ru Git - kernel.git/commitdiff
media: exynos4-is: Change clk_disable to clk_disable_unprepare
authorMiaoqian Lin <linmq006@gmail.com>
Fri, 18 Mar 2022 11:01:01 +0000 (12:01 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 09:02:18 +0000 (11:02 +0200)
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: c07089d4e738 ("[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>
drivers/media/platform/samsung/exynos4-is/fimc-is.c

index 81b290dace3abe1fdea6e98cc1604a69c7e65cad..e3072d69c49fa797acf358ff8c77e9912568847b 100644 (file)
@@ -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]);