error: too few arguments to function 't40_clk_init'

In file included from drivers/clk/ingenic/clk-t40.c:2:0:
drivers/clk/ingenic/clk-t40.c: In function '__t40_clk_of_clk_init_declare':
drivers/clk/ingenic/clk-t40.c:340:47: error: too few arguments to function 't40_clk_init'
 CLK_OF_DECLARE(t40_clk, "ingenic,t40-clocks", t40_clk_init);
                                               ^
-static void __init t40_clk_init(struct device_node *np, void __iomem *base)
+static void __init t40_clk_init(struct device_node *np)
 {
        void __iomem *reg_base;

        printk("t40 Clock Power Management Unit init!\n");

-       reg_base = base;
+       reg_base = of_iomap(np, 0);
+       if (!reg_base) {
+               pr_err("%s: could not map cru region\n", __func__);
+               return;
+       }

f1c506d152ff235ad621d3c25d061cb16da67214

0%