Commit 34c4da6d authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Bjorn Andersson

remoteproc: k3-r5: Fix an error message

'ret' is known to be 0 here.
Reorder the code so that the expected error code is printed.
Acked-by: default avatarSuman Anna <s-anna@ti.com>
Fixes: 6dedbd1d ("remoteproc: k3-r5: Add a remoteproc driver for R5F subsystem")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/d6e29d903b48957bf59c67229d54b0fc215e31ae.1620333870.git.christophe.jaillet@wanadoo.frSigned-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 3e25e407
......@@ -1349,9 +1349,9 @@ static int k3_r5_core_of_init(struct platform_device *pdev)
core->tsp = k3_r5_core_of_get_tsp(dev, core->ti_sci);
if (IS_ERR(core->tsp)) {
ret = PTR_ERR(core->tsp);
dev_err(dev, "failed to construct ti-sci proc control, ret = %d\n",
ret);
ret = PTR_ERR(core->tsp);
goto err;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment