This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: rockchip: rga: fix clock cleanup
Author:  Hans Verkuil <[email protected]>
Date:    Wed May 24 13:11:44 2023 +0100

Fix this smatch warning:

drivers/media/platform/rockchip/rga/rga.c:734 rga_enable_clocks() warn: 
'rga->sclk' from clk_prepare_enable() not released on lines: 734.

The reason is that aclk should be disabled/unprepared before
sclk, instead of the other way around.

Signed-off-by: Hans Verkuil <[email protected]>
Cc: Jacob Chen <[email protected]>
Cc: Ezequiel Garcia <[email protected]>
Reviewed-by: Michael Tretter <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/platform/rockchip/rga/rga.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

---

diff --git a/drivers/media/platform/rockchip/rga/rga.c 
b/drivers/media/platform/rockchip/rga/rga.c
index e4b8ce9ab3c6..f1c532a5802a 100644
--- a/drivers/media/platform/rockchip/rga/rga.c
+++ b/drivers/media/platform/rockchip/rga/rga.c
@@ -723,10 +723,10 @@ static int rga_enable_clocks(struct rockchip_rga *rga)
 
        return 0;
 
-err_disable_sclk:
-       clk_disable_unprepare(rga->sclk);
 err_disable_aclk:
        clk_disable_unprepare(rga->aclk);
+err_disable_sclk:
+       clk_disable_unprepare(rga->sclk);
 
        return ret;
 }

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to