summaryrefslogtreecommitdiff
path: root/include/dt-bindings
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2014-11-17 13:16:56 (GMT)
committerMichael Turquette <mturquette@linaro.org>2014-11-17 18:38:40 (GMT)
commit69daf75aafc8410ef046c70be65c71f2dd4e08f9 (patch)
treebe9397ee4a44717bcd8648816ddeff31284ef83c /include/dt-bindings
parentff553ea1a3d5b903becda790eeb6bd3debf239f9 (diff)
downloadlinux-69daf75aafc8410ef046c70be65c71f2dd4e08f9.tar.xz
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 'include/dt-bindings')
0 files changed, 0 insertions, 0 deletions