]> git.ipfire.org Git - thirdparty/u-boot.git/commit
Merge patch series "clk: Fix some error detection"
authorTom Rini <trini@konsulko.com>
Thu, 4 Dec 2025 15:38:46 +0000 (09:38 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 4 Dec 2025 15:38:46 +0000 (09:38 -0600)
commit8eed8a355843897258c3f22727b32abe95464b08
tree4da301a1b2470ecba5c84a241f8aaff1f7bd9fd4
parent2d08dfc1dc4fc159b13d54535fdca4566b5808d1
parentce219307a21fe7166b13542ba923ee09aef7f2f5
Merge patch series "clk: Fix some error detection"

Andrew Goodbody <andrew.goodbody@linaro.org> says:

The function clk_get_rate() returns a ulong with 0 meaning an invalid
clock rate and also negative error codes being returned for other
errors. But being an unsigned return value this cannot simply be tested
for with a < 0 test. Instead use the IS_ERR_VALUE() macro to check for
negative errors appearing as very large positive values. Fix those
places that test for <= 0. Also fix some places checking the return of
clk_register() that incorrectly used ERR_PTR().

Link: https://lore.kernel.org/r/20251021-clk_funcs-v1-0-acf51a40eea7@linaro.org