Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e968d9e authored by Wei Yongjun's avatar Wei Yongjun Committed by Bjorn Andersson
Browse files

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: default avatarWei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent c14b9a94
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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)