dm: blk: Use the correct error code for blk_get_device_by_str()
authorSimon Glass <sjg@chromium.org>
Sun, 1 May 2016 19:52:36 +0000 (13:52 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 17 May 2016 15:54:43 +0000 (09:54 -0600)
commit1598dfcb101c2c3aaac68a4ac8fc9bdef2293eaa
treea2feef2a9e449e30f1e27255255f4748a0f48189
parentc40fdca6b7db469d3982cc44fd68a269adb41b25
dm: blk: Use the correct error code for blk_get_device_by_str()

Return -EINVAL instead of -1 in this function, to provide a more meaningful
error.

Signed-off-by: Simon Glass <sjg@chromium.org>
disk/part.c