diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2018-01-03 02:51:29 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2018-01-03 02:51:29 +0100 |
commit | 348c898cb897d6663548aada9d68c0d2d7cfba8e (patch) | |
tree | eeb583aa42e224bac5ef654e7b6f6731a6182cdf /drivers/clk/meson | |
parent | clk: meson-axg: make local symbol axg_gp0_params_table static (diff) | |
parent | clk: meson: mpll: use 64-bit maths in params_from_rate (diff) | |
download | linux-348c898cb897d6663548aada9d68c0d2d7cfba8e.tar.xz linux-348c898cb897d6663548aada9d68c0d2d7cfba8e.zip |
Merge tag 'meson-clk-for-v4.16-3' of git://github.com/BayLibre/clk-meson into clk-meson
Pull Amlogic clk driver update from Jerome Brunet:
- Fix overflow in the mpll driver on 32bits arch
* tag 'meson-clk-for-v4.16-3' of git://github.com/BayLibre/clk-meson:
clk: meson: mpll: use 64-bit maths in params_from_rate
Diffstat (limited to 'drivers/clk/meson')
-rw-r--r-- | drivers/clk/meson/clk-mpll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/meson/clk-mpll.c b/drivers/clk/meson/clk-mpll.c index 44a5a535ca63..5144360e2c80 100644 --- a/drivers/clk/meson/clk-mpll.c +++ b/drivers/clk/meson/clk-mpll.c @@ -98,7 +98,7 @@ static void params_from_rate(unsigned long requested_rate, *sdm = SDM_DEN - 1; } else { *n2 = div; - *sdm = DIV_ROUND_UP(rem * SDM_DEN, requested_rate); + *sdm = DIV_ROUND_UP_ULL((u64)rem * SDM_DEN, requested_rate); } } |