提交 1d701d3d 编写于 作者: W Wei Yongjun 提交者: Bjorn Andersson

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: 63edb031 ("remoteproc: Supply controller driver for ST's Remote Processors")
Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
上级 fd50d8c0
...@@ -245,8 +245,10 @@ static int st_rproc_probe(struct platform_device *pdev) ...@@ -245,8 +245,10 @@ static int st_rproc_probe(struct platform_device *pdev)
goto free_rproc; goto free_rproc;
enabled = st_rproc_state(pdev); enabled = st_rproc_state(pdev);
if (enabled < 0) if (enabled < 0) {
ret = enabled;
goto free_rproc; goto free_rproc;
}
if (enabled) { if (enabled) {
atomic_inc(&rproc->power); atomic_inc(&rproc->power);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册