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

Commit 1d701d3d authored by Wei Yongjun's avatar Wei Yongjun Committed by Bjorn Andersson
Browse files

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent fd50d8c0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -245,8 +245,10 @@ static int st_rproc_probe(struct platform_device *pdev)
		goto free_rproc;

	enabled = st_rproc_state(pdev);
	if (enabled < 0)
	if (enabled < 0) {
		ret = enabled;
		goto free_rproc;
	}

	if (enabled) {
		atomic_inc(&rproc->power);