summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-divider.c
diff options
context:
space:
mode:
authorMike Turquette <mturquette@linaro.org>2014-05-23 14:37:10 -0700
committerMike Turquette <mturquette@linaro.org>2014-05-23 14:37:10 -0700
commit42dd880e678061aa1b26c69579a2dbb8f9532460 (patch)
treec56caba1c2d7df6c69f7e71d6ecfe1036696cc8f /drivers/clk/clk-divider.c
parentdedca6abaf42fb596645e60a20f677a6a4692c22 (diff)
parentfe52e7505f8bf365d5ab0eeee19ababe406cbaaf (diff)
downloadlinux-stable-42dd880e678061aa1b26c69579a2dbb8f9532460.tar.gz
linux-stable-42dd880e678061aa1b26c69579a2dbb8f9532460.tar.bz2
linux-stable-42dd880e678061aa1b26c69579a2dbb8f9532460.zip
Merge branch 'clk-fixes' into clk-next
Diffstat (limited to 'drivers/clk/clk-divider.c')
-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)