[PATCH 3/6] clk: microchip: mpfs: Fix error detection

Conor Dooley conor at kernel.org
Tue Oct 21 18:14:26 CEST 2025


On Tue, Oct 21, 2025 at 05:08:27PM +0100, Andrew Goodbody wrote:
> 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 at linaro.org>
> ---
>  drivers/clk/microchip/mpfs_clk_cfg.c    | 2 +-
>  drivers/clk/microchip/mpfs_clk_msspll.c | 2 +-
>  drivers/clk/microchip/mpfs_clk_periph.c | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)

Acked-by: Conor Dooley <conor.dooley at microchip.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20251021/ed1db8f0/attachment.sig>


More information about the U-Boot mailing list