diff options
| author | Tom Rini <[email protected]> | 2022-10-20 09:11:08 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-10-20 09:11:08 -0400 |
| commit | d843273a8022e70ccbdb6ad446b3335c3753e84f (patch) | |
| tree | 278b373a66a03744305caddabb1056788cb981c7 /test | |
| parent | dc3cb0abf41191aad62a6537ce8734a4f5339888 (diff) | |
| parent | b3b44c674a473bdd3d53cf5196fae897107af619 (diff) | |
Merge https://source.denx.de/u-boot/custodians/u-boot-riscv
Diffstat (limited to 'test')
| -rw-r--r-- | test/dm/k210_pll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dm/k210_pll.c b/test/dm/k210_pll.c index a0cc84c3961..354720f61e2 100644 --- a/test/dm/k210_pll.c +++ b/test/dm/k210_pll.c @@ -33,7 +33,7 @@ static int dm_test_k210_pll_calc_config(u32 rate, u32 rate_in, 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; best->f = f; |
