remoteproc: st: Fix error return code in st_rproc_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 17 Oct 2016 16:23:35 +0000 (16:23 +0000)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 1 Nov 2016 00:36:10 +0000 (17:36 -0700)
commit1d701d3dd8caf6660ff33c3c23a115b4649c5cdb
tree90f2350643d10f03d57bb6876c09008324d3457f
parentfd50d8c0619ebabee7017ca9358725643cc2b2b6
remoteproc: st: Fix error return code in st_rproc_probe()

Fix to return a negative error code from the st_rproc_state() error
handling case instead of 0, as done elsewhere in this function.

Fixes: 63edb0310a5c ("remoteproc: Supply controller driver for ST's Remote Processors")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/st_remoteproc.c