summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2018-01-03 02:51:29 +0100
committerStephen Boyd <sboyd@codeaurora.org>2018-01-03 02:51:29 +0100
commit348c898cb897d6663548aada9d68c0d2d7cfba8e (patch)
treeeeb583aa42e224bac5ef654e7b6f6731a6182cdf /drivers/clk
parentclk: meson-axg: make local symbol axg_gp0_params_table static (diff)
parentclk: meson: mpll: use 64-bit maths in params_from_rate (diff)
downloadlinux-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')
-rw-r--r--drivers/clk/meson/clk-mpll.c2
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);
}
}