Skip to content

Commit

Permalink
clk: imx25: make __mx25_clocks_init return void
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Fabio Estevam <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Acked-by: Stephen Boyd <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Abel Vesa <[email protected]>
  • Loading branch information
martin-kaiser authored and abelvesa committed Aug 14, 2023
1 parent b8a06b1 commit 5dc1760
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/clk/imx/clk-imx25.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5dc1760

Please sign in to comment.