diff options
author | Dinh Nguyen <dinguyen@kernel.org> | 2020-01-14 10:07:25 -0600 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2020-02-12 15:41:28 -0800 |
commit | cc26ed7be46c5f5fa45f3df8161ed7ca3c4d318c (patch) | |
tree | 628caa57eba05bb2e067eb5006b42be41d69e2da /drivers/clk/socfpga/clk-s10.c | |
parent | bb6d3fb354c5ee8d6bde2d576eb7220ea09862b9 (diff) | |
download | linux-stable-cc26ed7be46c5f5fa45f3df8161ed7ca3c4d318c.tar.gz linux-stable-cc26ed7be46c5f5fa45f3df8161ed7ca3c4d318c.tar.bz2 linux-stable-cc26ed7be46c5f5fa45f3df8161ed7ca3c4d318c.zip |
clk: stratix10: use do_div() for 64-bit calculation
do_div() macro to perform u64 division and guards against overflow if
the result is too large for the unsigned long return type.
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Link: https://lkml.kernel.org/r/20200114160726.19771-1-dinguyen@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/socfpga/clk-s10.c')
0 files changed, 0 insertions, 0 deletions