diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2020-03-17 22:13:32 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-06-24 17:50:08 +0200 |
commit | 7b139b714a5d6f0a4fd1f23d85ba09d756f1967a (patch) | |
tree | bd7f5555a5b805ccc8af858b1c4a4cd972f8503e /sound/soc/tegra | |
parent | 8aa822a1305c61047567dff8336614b5702264ba (diff) |
clk: sunxi: Fix incorrect usage of round_down()
[ Upstream commit ee25d9742dabed3fd18158b518f846abeb70f319 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound/soc/tegra')
0 files changed, 0 insertions, 0 deletions