diff options
Diffstat (limited to 'drivers/clk/spear')
-rw-r--r-- | drivers/clk/spear/clk.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clk/spear/clk.c b/drivers/clk/spear/clk.c index 7cd6378..628b6d5 100644 --- a/drivers/clk/spear/clk.c +++ b/drivers/clk/spear/clk.c @@ -32,5 +32,8 @@ long clk_round_rate_index(struct clk_hw *hw, unsigned long drate, } } + if ((*index) == rtbl_cnt) + (*index)--; + return rate; } |