dm: sandbox: sf: Tidy up the error handling in sandbox_sf_probe()
authorSimon Glass <sjg@chromium.org>
Sun, 25 Jan 2015 15:27:09 +0000 (08:27 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 30 Jan 2015 00:09:56 +0000 (17:09 -0700)
commit1603bf3cc189da65362b83b85831e094a2fe8516
tree3fb6880c240011808fb02f34a36965e1a24de3e6
parent081f2fcbd9a95ba10677065359791f8fea3f8c58
dm: sandbox: sf: Tidy up the error handling in sandbox_sf_probe()

Use a single exit point when we have an error and add debugging there.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/mtd/spi/sandbox.c