ARM: SAMSUNG: Fix bug in clksrc-clk round_rate call.
authorBen Dooks <ben-linux@fluff.org>
Mon, 18 Jan 2010 06:57:42 +0000 (15:57 +0900)
committerBen Dooks <ben-linux@fluff.org>
Mon, 18 Jan 2010 07:00:56 +0000 (16:00 +0900)
commitf9e011b6b305d38445bbd4a1e7a8814e056de37b
treee468845831a2061edd25f1f41b57b0b111e3d9d3
parentf3b464cca94c4a8f54fbc11ec5af8b143fd1750b
ARM: SAMSUNG: Fix bug in clksrc-clk round_rate call.

The call has been assuming all clksrc-clks' divider size is 4 bits, but
this may not be the case anymore. Use the reg_div.size parameter to
calculate the maximum value it can take and check against that.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-samsung/clock-clksrc.c