original_kernel/drivers/clk/at91
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
..
Makefile clk: at91: add a driver for the h32mx clock 2014-09-22 11:38:59 +02:00
clk-h32mx.c clk: at91: add a driver for the h32mx clock 2014-09-22 11:38:59 +02:00
clk-main.c
clk-master.c
clk-peripheral.c
clk-pll.c clk: at91: fix recalc_rate implementation of PLL driver 2014-09-02 15:37:17 -07:00
clk-plldiv.c
clk-programmable.c
clk-slow.c
clk-smd.c
clk-system.c
clk-usb.c clk: at91: usb: fix at91sam9x5 recalc, round and set rate 2014-11-17 10:38:40 -08:00
clk-utmi.c
pmc.c clk: at91: add a driver for the h32mx clock 2014-09-22 11:38:59 +02:00
pmc.h clk: at91: add a driver for the h32mx clock 2014-09-22 11:38:59 +02:00
sckc.c
sckc.h