diff options
author | Simon Glass <sjg@chromium.org> | 2014-10-13 23:42:05 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-10-22 10:36:50 -0600 |
commit | ae242cbfd0fc2b9e791688b3d9d6a19900ff3d31 (patch) | |
tree | 979374b651b6093922481786d08a44a2cd76ec42 /include/msc01.h | |
parent | ff0960f9a018952cbaab59c0d87b6e0338c8f04c (diff) | |
download | u-boot-imx-ae242cbfd0fc2b9e791688b3d9d6a19900ff3d31.zip u-boot-imx-ae242cbfd0fc2b9e791688b3d9d6a19900ff3d31.tar.gz u-boot-imx-ae242cbfd0fc2b9e791688b3d9d6a19900ff3d31.tar.bz2 |
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>
Diffstat (limited to 'include/msc01.h')
0 files changed, 0 insertions, 0 deletions