1
0
Fork 0

remoteproc: qcom: hexagon: Fix error return code in q6v5_probe()

Fix to return a negative error code from the state get failed error
handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
hifive-unleashed-5.1
Wei Yongjun 2016-07-29 15:56:52 +00:00 committed by Bjorn Andersson
parent c14b9a940e
commit 4e968d9e46
1 changed files with 3 additions and 1 deletions

View File

@ -863,8 +863,10 @@ static int q6v5_probe(struct platform_device *pdev)
goto free_rproc;
qproc->state = qcom_smem_state_get(&pdev->dev, "stop", &qproc->stop_bit);
if (IS_ERR(qproc->state))
if (IS_ERR(qproc->state)) {
ret = PTR_ERR(qproc->state);
goto free_rproc;
}
ret = rproc_add(rproc);
if (ret)