Skip to contentSkip to conversation

clk: clk-imx8mp-audiomix: fix function signature

PATCH Applied Nikolaus Voss 5 participants 5 messages Dec 19, 2024 – Dec 20, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: clk-imx8mp-audiomix: fix function signature

clk_imx8mp_audiomix_reset_controller_register() in the "if !CONFIG_RESET_CONTROLLER" branch had the first argument missing. It is an empty function for this branch so it wasn't immediately apparent.

Fixes 6f0e817175c5 ("clk: imx: clk-audiomix: Add reset controller")
Cc <[email protected]> # 6.12.x
---
 drivers/clk/imx/clk-imx8mp-audiomix.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/clk/imx/clk-imx8mp-audiomix.c +2 -1
index b2cb157703c57..c409fc7e06186 100644
@@ -278,7 +278,8 @@ static int clk_imx8mp_audiomix_reset_controller_register(struct device *dev,
 
 #else /* !CONFIG_RESET_CONTROLLER */
 
-static int clk_imx8mp_audiomix_reset_controller_register(struct clk_imx8mp_audiomix_priv *priv)
+static int clk_imx8mp_audiomix_reset_controller_register(struct device *dev,
+							 struct clk_imx8mp_audiomix_priv *priv)
 {
 	return 0;
 }
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Nikolaus Voss

clk_imx8mp_audiomix_reset_controller_register() in the "if !CONFIG_RESET_CONTROLLER" branch had the first argument missing. It is an empty function for this branch so it wasn't immediately apparent.

Fixes 6f0e817175c5 ("clk: imx: clk-audiomix: Add reset controller")
Cc <[email protected]> # 6.12.x

Good catch.

Acked-by on v1 1/1
#2 lore raw
In reply to Nikolaus Voss
Quoted 9 lines · Nikolaus Voss

clk_imx8mp_audiomix_reset_controller_register() in the "if !CONFIG_RESET_CONTROLLER" branch had the first argument missing. It is an empty function for this branch so it wasn't immediately apparent.

Fixes 6f0e817175c5 ("clk: imx: clk-audiomix: Add reset controller")
Cc <[email protected]> # 6.12.x

Best regards
Shengjiu Wang

Quoted 22 lines
---
 drivers/clk/imx/clk-imx8mp-audiomix.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/clk/imx/clk-imx8mp-audiomix.c +2 -2
index b2cb157703c57..c409fc7e06186 100644
@@ -278,7 +278,8 @@ static int clk_imx8mp_audiomix_reset_controller_register(struct device *dev,
 
 #else /* !CONFIG_RESET_CONTROLLER */
 
-static int clk_imx8mp_audiomix_reset_controller_register(struct clk_imx8mp_audiomix_priv *priv)
+static int clk_imx8mp_audiomix_reset_controller_register(struct device *dev,
+                                                        struct clk_imx8mp_audiomix_priv *priv)
 {
        return 0;
 }
--

2.43.0

Reviewed-by on v1 1/1
#3 lore raw
In reply to Nikolaus Voss
Quoted 8 lines · Nikolaus Voss

clk_imx8mp_audiomix_reset_controller_register() in the "if !CONFIG_RESET_CONTROLLER" branch had the first argument missing. It is an empty function for this branch so it wasn't immediately apparent.

Fixes 6f0e817175c5 ("clk: imx: clk-audiomix: Add reset controller")
Cc <[email protected]> # 6.12.x
maintainer Applied
#4 lore raw
In reply to Nikolaus Voss

Quoting Nikolaus Voss (2024-12-19 02:54:11)

Quoted 9 lines

clk_imx8mp_audiomix_reset_controller_register() in the "if !CONFIG_RESET_CONTROLLER" branch had the first argument missing. It is an empty function for this branch so it wasn't immediately apparent.

Fixes 6f0e817175c5 ("clk: imx: clk-audiomix: Add reset controller")
Cc <[email protected]> # 6.12.x

---

Applied to clk-fixes