Files
u-boot/drivers
Andrew Goodbody bd644d9613 clk: cdce9xx: Fix use of dev_read_u32_default
The function dev_read_u32_default does not return an error and the
variable 'val' is unsigned so testing for >= 0 will always be true. It
looks like the code was attempting to return -1 if xtal-load-pf was not
present but that cannot work. Instead use dev_read_u32 which returns an
error code separately from writing the value into the passed pointer.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Fixes: 260777fc23 ("clk: cdce9xx: add support for cdce9xx clock  synthesizer")
Acked-by: Quentin Schulz <quentin.schulz@cherry.de>
2025-08-11 15:11:22 -06:00
..
2025-07-10 08:41:03 -06:00
2025-04-11 12:16:44 -06:00
2025-07-22 11:30:14 -06:00
2025-06-02 17:26:16 -06:00
2025-04-11 12:16:44 -06:00
2025-04-11 12:16:44 -06:00
2025-07-29 16:44:58 +02:00
2025-07-30 14:55:17 +02:00
2025-06-25 13:42:04 -06:00
2025-04-11 12:16:44 -06:00