clk: imx25: make __mx25_clocks_init return void
authorMartin Kaiser <martin@kaiser.cx>
Wed, 2 Aug 2023 18:40:46 +0000 (20:40 +0200)
committerAbel Vesa <abel.vesa@linaro.org>
Mon, 14 Aug 2023 09:41:05 +0000 (12:41 +0300)
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>
drivers/clk/imx/clk-imx25.c

index bee3da2e21e159f9210370e9c41048202cd25577..c566be848c2d50290b3e734685d9a72261797135 100644 (file)
@@ -74,7 +74,7 @@ enum mx25_clks {
 
 static struct clk *clk[clk_max];
 
-static int __init __mx25_clocks_init(void __iomem *ccm_base)
+static void __init __mx25_clocks_init(void __iomem *ccm_base)
 {
        BUG_ON(!ccm_base);
 
@@ -222,8 +222,6 @@ static int __init __mx25_clocks_init(void __iomem *ccm_base)
        imx_register_uart_clocks();
 
        imx_print_silicon_rev("i.MX25", mx25_revision());
-
-       return 0;
 }
 
 static void __init mx25_clocks_init_dt(struct device_node *np)