Re: [PATCH 2/2] spi: xlp: Add ACPI support for Vulcan SPI controller

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

 



On Mon, Aug 08, 2016 at 05:48:28PM +0530, kamlakant.patel@xxxxxxxxxxxx wrote:

> -	if (IS_ERR(clk)) {
> -		dev_err(&pdev->dev, "could not get spi clock\n");
> -		return -ENODEV;
> -	}
> +	if (IS_ERR(clk))
> +		return -EPROBE_DEFER;
> +

No, this is broken - if there really is a fatal error it'll silently
discard it and replace it with -EPROBE_DEFER.  This will cause things to
be incorrectly deferred if there is a real error making it harder for
people to diagnose problems.  You should just pass the error code you
get back to the caller.

Attachment: signature.asc
Description: PGP signature


[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