summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorMike Turquette <mturquette@linaro.org>2014-05-23 23:37:10 +0200
committerMike Turquette <mturquette@linaro.org>2014-05-23 23:37:10 +0200
commit42dd880e678061aa1b26c69579a2dbb8f9532460 (patch)
treec56caba1c2d7df6c69f7e71d6ecfe1036696cc8f /drivers/clk
parentMerge remote-tracking branch 'linaro/clk-next' into clk-next (diff)
parentclk: divider: Fix table round up function (diff)
downloadlinux-42dd880e678061aa1b26c69579a2dbb8f9532460.tar.xz
linux-42dd880e678061aa1b26c69579a2dbb8f9532460.zip
Merge branch 'clk-fixes' into clk-next
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/clk-divider.c2
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)