[U-Boot] [PATCH v4 18/29] spi: Use error return value in sf_ops
Simon Glass
sjg at chromium.org
Thu Oct 23 05:04:26 CEST 2014
On 13 October 2014 23:42, Simon Glass <sjg at chromium.org> wrote:
> Adjust spi_flash_probe_slave() to return an error value instead of a
> pointer so we get the correct error return.
>
> Have the caller allocate memory for spi_flash to simplify error handling,
> and also so that driver model can use its existing allocated memory.
>
> Add a spi.h include in the sf_params file.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki at gmail.com>
> ---
>
> Changes in v4: None
> Changes in v3: None
> Changes in v2: None
>
> drivers/mtd/spi/sf_probe.c | 90 +++++++++++++++++++++++++++++-----------------
> 1 file changed, 57 insertions(+), 33 deletions(-)
>
Applied to u-boot-dm/master.
More information about the U-Boot
mailing list