commit | c10c3d4811c3c4ce9380df4b153740743ecf4e1d | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Oct 13 23:42:05 2014 -0600 |
committer | Simon Glass <sjg@chromium.org> | Wed Oct 22 10:36:50 2014 -0600 |
tree | 979374b651b6093922481786d08a44a2cd76ec42 | |
parent | d34b456a35126d60cd05c0e6f1a30694280c60ec [diff] |
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>