[U-Boot] [PATCH v2 15/16] spi: Correct two error return values

Simon Glass sjg at chromium.org
Fri Feb 26 18:13:49 CET 2016


On 24 February 2016 at 09:14, Simon Glass <sjg at chromium.org> wrote:
> When an error number is provided we should use it, not change it. This fixes
> the SPI and SPI flash tests.
>
> One of these is long-standing. The other seems to have been introduced by
> commit 1e90d9fd (sf: Move read_id code to sf_ops).
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Fixes: 1e90d9fd (sf: Move read_id code to sf_ops)
> Reviewed-by: Jagan Teki <jteki at openedev.com>
> Tested-by: Jagan Teki <jteki at openedev.com>
> ---
>
> Changes in v2: None
>
>  drivers/mtd/spi/sf_probe.c  | 4 +---
>  drivers/mtd/spi/spi_flash.c | 2 +-
>  2 files changed, 2 insertions(+), 4 deletions(-)

Applied to u-boot-dm.


More information about the U-Boot mailing list