summaryrefslogtreecommitdiffstats
path: root/include/dm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-13 23:42:05 -0600
committerSimon Glass <sjg@chromium.org>2014-10-22 10:36:50 -0600
commitae242cbfd0fc2b9e791688b3d9d6a19900ff3d31 (patch)
tree979374b651b6093922481786d08a44a2cd76ec42 /include/dm
parentff0960f9a018952cbaab59c0d87b6e0338c8f04c (diff)
downloadtalos-obmc-uboot-ae242cbfd0fc2b9e791688b3d9d6a19900ff3d31.tar.gz
talos-obmc-uboot-ae242cbfd0fc2b9e791688b3d9d6a19900ff3d31.zip
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/dm')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud