summaryrefslogtreecommitdiff
path: root/drivers/clk/clk-k210.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clk/clk-k210.c')
-rw-r--r--drivers/clk/clk-k210.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-k210.c b/drivers/clk/clk-k210.c
index 67a7cb3503c3..4eed667eddaf 100644
--- a/drivers/clk/clk-k210.c
+++ b/drivers/clk/clk-k210.c
@@ -495,7 +495,7 @@ static unsigned long k210_pll_get_rate(struct clk_hw *hw,
f = FIELD_GET(K210_PLL_CLKF, reg) + 1;
od = FIELD_GET(K210_PLL_CLKOD, reg) + 1;
- return (u64)parent_rate * f / (r * od);
+ return div_u64((u64)parent_rate * f, r * od);
}
static const struct clk_ops k210_pll_ops = {