clk: divider: Fix table round up function
clk: divider: Fix table round up function

Commit 1d9fe6b97 ("clk: divider: Fix best div calculation for power-of-two and
table dividers") introduces a regression in its _table_round_up function.

When the divider passed to this function is greater than the max divider
available in the table, this function returns table's max divider.
Problem is that it causes an infinite loop in clk_divider_bestdiv() because
_next_div() will never return a value greater than maxdiv.

Instead of returning table's max divider, this patch returns INT_MAX.

Reported-by: Fabio Estevam <288a049a20dc4091188b72022d411ad1375e6737@gmail.com>
Reported-by: Shawn Guo <912cf7eb7d8018e2943586ae6657d21fd4e38239@freescale.com>
Tested-by: Fabio Estevam <288a049a20dc4091188b72022d411ad1375e6737@gmail.com>
Tested-by: Shawn Guo <912cf7eb7d8018e2943586ae6657d21fd4e38239@freescale.com>
Signed-off-by: Maxime Coquelin <9a2667dee3b90866bbc9c2696cff2b7d5616c95a@st.com>
Signed-off-by: Mike Turquette <6dab61939fc5e23761050a66932f032dceda5ebf@linaro.org>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs