diff options
author | Tom Rini <trini@konsulko.com> | 2022-10-20 16:11:08 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-10-20 16:11:08 +0300 |
commit | d843273a8022e70ccbdb6ad446b3335c3753e84f (patch) | |
tree | 278b373a66a03744305caddabb1056788cb981c7 /drivers/clk | |
parent | dc3cb0abf41191aad62a6537ce8734a4f5339888 (diff) | |
parent | b3b44c674a473bdd3d53cf5196fae897107af619 (diff) | |
download | u-boot-d843273a8022e70ccbdb6ad446b3335c3753e84f.tar.xz |
Merge https://source.denx.de/u-boot/custodians/u-boot-riscv
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/clk_k210.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk_k210.c b/drivers/clk/clk_k210.c index 1961efaa5e..f7d36963f8 100644 --- a/drivers/clk/clk_k210.c +++ b/drivers/clk/clk_k210.c @@ -846,7 +846,7 @@ again: error = DIV_ROUND_CLOSEST_ULL(f * inv_ratio, r * od); /* The lower 16 bits are spurious */ - error = abs((error - BIT(32))) >> 16; + error = abs64((error - BIT_ULL(32))) >> 16; if (error < best_error) { best->r = r; |