OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 19:18:06 +0000 (20:18 +0100)
commitf607fd883654003e76db567ebb4c4dd9054892bf
treea4ec61fd4de1cb9f3580efab4605f2d1f8f58a3d
parent0e38a0b7acbb8d046c7312ae8cb1e98951934226
remoteproc: st: Fix error return code in st_rproc_probe()

commit 1d701d3dd8caf6660ff33c3c23a115b4649c5cdb upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/remoteproc/st_remoteproc.c