Home
last modified time | relevance | path

Searched hist:ae242cbfd0fc2b9e791688b3d9d6a19900ff3d31 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/mtd/spi/
H A Dsf_probe.cae242cbfd0fc2b9e791688b3d9d6a19900ff3d31 Tue Oct 14 05:42:05 UTC 2014 Simon Glass <sjg@chromium.org> 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>