summaryrefslogtreecommitdiff
path: root/mm/maccess.c
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2014-11-17 14:16:56 +0100
committerMichael Turquette <mturquette@linaro.org>2014-11-17 10:38:40 -0800
commit69daf75aafc8410ef046c70be65c71f2dd4e08f9 (patch)
treebe9397ee4a44717bcd8648816ddeff31284ef83c /mm/maccess.c
parentff553ea1a3d5b903becda790eeb6bd3debf239f9 (diff)
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>
Diffstat (limited to 'mm/maccess.c')
0 files changed, 0 insertions, 0 deletions