clk: k210: remove an implicit 64-bit division
authorConor Dooley <conor.dooley@microchip.com>
Wed, 1 Mar 2023 00:26:55 +0000 (19:26 -0500)
committerStephen Boyd <sboyd@kernel.org>
Mon, 6 Mar 2023 22:41:20 +0000 (14:41 -0800)
commit89dc65a7cc8a119c395c0931b12d7a514f9d2bcc
tree3afa1bfee774f1d1173abb0c469909d3854b1049
parent26243872fe26ec0df7d81766253d00213990e382
clk: k210: remove an implicit 64-bit division

The K210 clock driver depends on SOC_CANAAN, which is only selectable
when !MMU on RISC-V. !MMU is not possible on 32-bit yet, but patches
have been sent for its enabling. The kernel test robot reported this
implicit 64-bit division there.

Replace the implicit division with an explicit one.

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/linux-riscv/202301201538.zNlqgE4L-lkp@intel.com/
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Jesse Taube <Mr.Bossman075@gmail.com>
Link: https://lore.kernel.org/r/20230301002657.352637-2-Mr.Bossman075@gmail.com
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-k210.c