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> |
||
---|---|---|
.. | ||
Makefile | ||
eeprom_m95xxx.c | ||
fsl_espi_spl.c | ||
ramtron.c | ||
sandbox.c | ||
sf.c | ||
sf_internal.h | ||
sf_ops.c | ||
sf_params.c | ||
sf_probe.c | ||
spi_spl_load.c |