clk: hisi: assign missing clk to table
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Tue, 24 Dec 2013 09:31:13 +0000 (17:31 +0800)
committerHaojian Zhuang <haojian.zhuang@gmail.com>
Wed, 19 Mar 2014 07:23:32 +0000 (15:23 +0800)
The fixed rate and fixed factor clock isn't registered to clk table.

Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
drivers/clk/hisilicon/clk.c

index a3a7152..18fc21f 100644 (file)
@@ -68,6 +68,7 @@ void __init hisi_clk_register_fixed_rate(struct hisi_fixed_rate_clock *clks,
                               __func__, clks[i].name);
                        continue;
                }
+               clk_table[clks[i].id] = clk;
        }
 }
 
@@ -87,6 +88,7 @@ void __init hisi_clk_register_fixed_factor(struct hisi_fixed_factor_clock *clks,
                               __func__, clks[i].name);
                        continue;
                }
+               clk_table[clks[i].id] = clk;
        }
 }