diff options
author | Mike Turquette <mturquette@linaro.org> | 2014-05-23 23:37:10 +0200 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-05-23 23:37:10 +0200 |
commit | 42dd880e678061aa1b26c69579a2dbb8f9532460 (patch) | |
tree | c56caba1c2d7df6c69f7e71d6ecfe1036696cc8f | |
parent | Merge remote-tracking branch 'linaro/clk-next' into clk-next (diff) | |
parent | clk: divider: Fix table round up function (diff) | |
download | linux-42dd880e678061aa1b26c69579a2dbb8f9532460.tar.xz linux-42dd880e678061aa1b26c69579a2dbb8f9532460.zip |
Merge branch 'clk-fixes' into clk-next
-rw-r--r-- | drivers/clk/clk-divider.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index c9343f5d9918..47eabfab3706 100644 --- a/drivers/clk/clk-divider.c +++ b/drivers/clk/clk-divider.c @@ -158,7 +158,7 @@ static bool _is_valid_div(struct clk_divider *divider, unsigned int div) static int _round_up_table(const struct clk_div_table *table, int div) { const struct clk_div_table *clkt; - int up = _get_table_maxdiv(table); + int up = INT_MAX; for (clkt = table; clkt->div; clkt++) { if (clkt->div == div) |