remoteproc: fix error return code in rproc_fw_boot()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 30 Jun 2013 08:07:13 +0000 (11:07 +0300)
committerOhad Ben-Cohen <ohad@wizery.com>
Sun, 30 Jun 2013 08:07:13 +0000 (11:07 +0300)
commit89970d28cb3fd1c678f769d62d077c10ec5340e1
tree72f6003c37242453686adbe1c96bb1b0deafb71a
parent9e895ace5d82df8929b16f58e9f515f6d54ab82d
remoteproc: fix error return code in rproc_fw_boot()

Set 'ret' to -EINVAL when needed, so a sensible return value
is returned on errors.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
[fix additional instances of this bug as well, update commit log]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
drivers/remoteproc/remoteproc_core.c