media: s5p-mfc: drop useless clock refcnt debugging
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 24 Dec 2023 15:44:12 +0000 (16:44 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 22 Jan 2024 11:16:43 +0000 (12:16 +0100)
Drop useless debugging of clock enabl/disable counts, because core
handles this much better.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_pm.c

index 187849841a28b28f0a204ebb38e2ebcbe22228aa..29b141d4a7a70d1300f21f3e9e77eb15d92813d4 100644 (file)
@@ -16,7 +16,6 @@
 
 static struct s5p_mfc_pm *pm;
 static struct s5p_mfc_dev *p_dev;
-static atomic_t clk_ref;
 
 int s5p_mfc_init_pm(struct s5p_mfc_dev *dev)
 {
@@ -49,7 +48,6 @@ int s5p_mfc_init_pm(struct s5p_mfc_dev *dev)
                pm->clock_gate = pm->clocks[0];
 
        pm_runtime_enable(pm->device);
-       atomic_set(&clk_ref, 0);
        return 0;
 }
 
@@ -60,17 +58,11 @@ void s5p_mfc_final_pm(struct s5p_mfc_dev *dev)
 
 int s5p_mfc_clock_on(void)
 {
-       atomic_inc(&clk_ref);
-       mfc_debug(3, "+ %d\n", atomic_read(&clk_ref));
-
        return clk_enable(pm->clock_gate);
 }
 
 void s5p_mfc_clock_off(void)
 {
-       atomic_dec(&clk_ref);
-       mfc_debug(3, "- %d\n", atomic_read(&clk_ref));
-
        clk_disable(pm->clock_gate);
 }