Skip to content

Commit 5dc1760

Browse files
martin-kaiserabelvesa
authored andcommitted
clk: imx25: make __mx25_clocks_init return void
The __mx25_clocks_init function always returns 0 and its only caller does not check the return value. Let's remove it. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Reviewed-by: Fabio Estevam <festevam@gmail.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Stephen Boyd <sboyd@kernel.org> Link: https://lore.kernel.org/r/20230802184046.153394-3-martin@kaiser.cx Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
1 parent b8a06b1 commit 5dc1760

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/clk/imx/clk-imx25.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ enum mx25_clks {
7474

7575
static struct clk *clk[clk_max];
7676

77-
static int __init __mx25_clocks_init(void __iomem *ccm_base)
77+
static void __init __mx25_clocks_init(void __iomem *ccm_base)
7878
{
7979
BUG_ON(!ccm_base);
8080

@@ -222,8 +222,6 @@ static int __init __mx25_clocks_init(void __iomem *ccm_base)
222222
imx_register_uart_clocks();
223223

224224
imx_print_silicon_rev("i.MX25", mx25_revision());
225-
226-
return 0;
227225
}
228226

229227
static void __init mx25_clocks_init_dt(struct device_node *np)

0 commit comments

Comments
 (0)