clk: clk-imx8mp-audiomix: fix function signature
Subsystems (3)
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.
--- drivers/clk/imx/clk-imx8mp-audiomix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/clk/imx/clk-imx8mp-audiomix.c +2 -1
@@ -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
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.xSigned-off-by Nikolaus Voss <[email protected]>
Good catch.
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.xSigned-off-by Nikolaus Voss <[email protected]>
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@@ -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
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.xSigned-off-by Nikolaus Voss <[email protected]>
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.xSigned-off-by Nikolaus Voss <[email protected]>---
Applied to clk-fixes