]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: imx: fix function type for CLK_OF_DECLARE
authorRob Herring <robh@kernel.org>
Mon, 12 May 2014 16:19:39 +0000 (11:19 -0500)
committerRob Herring <robh@kernel.org>
Tue, 20 May 2014 19:25:21 +0000 (14:25 -0500)
Adding function type checking to CLK_OF_DECLARE found a type mismatch with
mx35_clocks_init_dt. The function should return void.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Shawn Guo <shawn.guo@freescale.com>
Cc: Sascha Hauer <kernel@pengutronix.de>
arch/arm/mach-imx/clk-imx35.c

index a4d5e425cd8219389c5ba32887cc7ab867e41ed3..71c86a2f856d5ddb5ffb9565afdbdb4b5ce3be6e 100644 (file)
@@ -289,14 +289,12 @@ int __init mx35_clocks_init(void)
        return 0;
 }
 
-static int __init mx35_clocks_init_dt(struct device_node *ccm_node)
+static void __init mx35_clocks_init_dt(struct device_node *ccm_node)
 {
        clk_data.clks = clk;
        clk_data.clk_num = ARRAY_SIZE(clk);
        of_clk_add_provider(ccm_node, of_clk_src_onecell_get, &clk_data);
 
        mx35_clocks_init();
-
-       return 0;
 }
 CLK_OF_DECLARE(imx35, "fsl,imx35-ccm", mx35_clocks_init_dt);