Re: [PATCH] spi: mpc5xxx-psc: Fix compile error

From: Krzysztof Kozlowski
Date: Mon Mar 13 2023 - 03:41:54 EST


On 12/03/2023 14:39, Andi Shyti wrote:
> Commit 9e21720a4958 ("spi: mpc5xxx-psc: use
> devm_clk_get_enabled() for core clock") has made use of the
> devm_clk_get_enabled(), but it actually forgot to remove a couple
> of goto's, triggering the following compile error:
>
> drivers/spi/spi-mpc512x-psc.c: In function ‘mpc512x_psc_spi_of_probe’:
> drivers/spi/spi-mpc512x-psc.c:518:17: error: label ‘free_ipg_clock’ used but not defined
> 518 | goto free_ipg_clock;
>
> Replace those goto's with actual returns.

https://lore.kernel.org/all/20230310111544.57342-1-andriy.shevchenko@xxxxxxxxxxxxxxx/

Best regards,
Krzysztof