u-boot-brain/drivers/mtd/spi
Simon Glass ae242cbfd0 spi: Use error return value in sf_ops
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@chromium.org>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
2014-10-22 10:36:50 -06:00
..
eeprom_m95xxx.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_espi_spl.c driver: Add support of image load for MMC & SPI in SPL 2014-04-22 17:58:50 -07:00
Makefile sf: Separate the flash params table 2014-01-11 15:13:27 +05:30
ramtron.c sf: Tidy up public and private header files 2014-10-22 10:36:50 -06:00
sandbox.c sandbox: Convert SPI flash emulation to use sf_params 2014-09-26 15:00:36 -06:00
sf_internal.h sf: Tidy up public and private header files 2014-10-22 10:36:50 -06:00
sf_ops.c sf: sf_ops: Stop leaking memory 2014-08-06 00:18:01 +05:30
sf_params.c dm: Add spi.h header to a few files 2014-10-22 10:36:47 -06:00
sf_probe.c spi: Use error return value in sf_ops 2014-10-22 10:36:50 -06:00
sf.c sf: Add CONFIG_SF_DUAL_FLASH 2014-01-12 21:40:22 +05:30
spi_spl_load.c sf: Tidy up public and private header files 2014-10-22 10:36:50 -06:00