diff options
author | Haojian Zhuang <haojian.zhuang@linaro.org> | 2013-10-23 13:06:29 +0800 |
---|---|---|
committer | Haojian Zhuang <haojian.zhuang@linaro.org> | 2013-10-23 14:48:33 +0800 |
commit | 1a8da16bc496ad5e89a29ca33b1eb1cf3c43a144 (patch) | |
tree | a7654707264bdf8ee054bd608a51564d749ee0b3 | |
parent | 4595ebc4cd168a4f33b4968213f12dfb3fefe8cc (diff) |
clk: hi3xxx: fix the count of clock dividertracking-hilt-lsk-clkdiv-1023
Since the last item is always <0, 0>, we should add 1 on the count
of the clock divider.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
-rw-r--r-- | drivers/clk/hisilicon/clk-hi3xxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/hisilicon/clk-hi3xxx.c b/drivers/clk/hisilicon/clk-hi3xxx.c index a331a786e343..d3969a3ea5c8 100644 --- a/drivers/clk/hisilicon/clk-hi3xxx.c +++ b/drivers/clk/hisilicon/clk-hi3xxx.c @@ -532,7 +532,7 @@ void __init hi3620_clkdiv_setup(struct device_node *np) return; /*table ends with <0, 0>, so plus one to table_num*/ - table_num = max_div - min_div + 1; + table_num = max_div - min_div + 1 + 1; table = kzalloc(sizeof(struct clk_div_table) * table_num, GFP_KERNEL); if (!table) |