Boris Brezillon 69daf75aaf clk: at91: usb: fix at91sam9x5 recalc, round and set rate
First check for rate == 0 in set_rate and round_rate to avoid div by zero.
Then, in order to get the closest rate, round all divisions to the closest
result instead of rounding them down.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
2014-11-17 10:38:40 -08:00
..
2013-12-02 15:31:22 +01:00
2013-12-02 15:31:25 +01:00
2013-12-02 15:31:25 +01:00
2014-05-07 18:27:45 +02:00
2014-05-07 18:27:45 +02:00