diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2020-03-17 22:13:32 +0100 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2020-04-14 09:21:05 +0200 |
commit | ee25d9742dabed3fd18158b518f846abeb70f319 (patch) | |
tree | 098aea8ea5ab5b50c2a9a81b9bf80bcb2a64a3c5 /drivers/mailbox | |
parent | 8f3d9f354286745c751374f5f1fcafee6b3f3136 (diff) | |
download | linux-ee25d9742dabed3fd18158b518f846abeb70f319.tar.bz2 |
clk: sunxi: Fix incorrect usage of round_down()
round_down() can only round to powers of 2. If round_down() is asked
to round to something that is not a power of 2, incorrect results are
produced. The incorrect results can be both too large and too small.
Instead, use rounddown() which can round to any number.
Fixes: 6a721db180a2 ("clk: sunxi: Add A31 clocks support")
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Diffstat (limited to 'drivers/mailbox')
0 files changed, 0 insertions, 0 deletions