Re: [PATCH -next] spi: s3c24xx: Switch to use devm_spi_alloc_master()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20/09/2022 13:49, Yang Yingliang wrote:
(...)

>  
>  	s3c24xx_spi_initialsetup(hw);
> @@ -531,17 +525,11 @@ static int s3c24xx_spi_probe(struct platform_device *pdev)
>  	err = spi_bitbang_start(&hw->bitbang);
>  	if (err) {
>  		dev_err(&pdev->dev, "Failed to register SPI master\n");
> -		goto err_register;
> +		clk_disable(hw->clk);
> +		return err;
>  	}
>  
>  	return 0;
> -
> - err_register:
> -	clk_disable(hw->clk);

This label and error handling should rather stay.


Best regards,
Krzysztof



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux