]> git.ipfire.org Git - thirdparty/u-boot.git/commit
clk: microchip: mpfs: Fix error detection
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 21 Oct 2025 16:08:27 +0000 (17:08 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 4 Dec 2025 15:38:16 +0000 (09:38 -0600)
commitae4f60801f344aa26e3f2d1ffe6f6227be6f16a2
treeda860874d4fe59d12e106b8ce7b69860647aadf6
parent42d30f9447c136d2c1f46c8a12e6058e3cddc3b6
clk: microchip: mpfs: Fix error detection

clk_register() will return standard error codes so the use of ERR_PTR()
is incorrect. Furthermore the code was ineffective as it lacked a return
statement that would have actually made use of the result. Add the
return statement and remove the use of ERR_PTR to correct this.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
drivers/clk/microchip/mpfs_clk_cfg.c
drivers/clk/microchip/mpfs_clk_msspll.c
drivers/clk/microchip/mpfs_clk_periph.c