mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
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> |
History
|
|
|---|---|---|
| .. | ||
| clk-h32mx.c | ||
| clk-main.c | ||
| clk-master.c | ||
| clk-peripheral.c | ||
| clk-pll.c | ||
| clk-plldiv.c | ||
| clk-programmable.c | ||
| clk-slow.c | ||
| clk-smd.c | ||
| clk-system.c | ||
| clk-usb.c | ||
| clk-utmi.c | ||
| Makefile | ||
| pmc.c | ||
| pmc.h | ||
| sckc.c | ||
| sckc.h | ||