VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Christophe JAILLET <christophe.jaillet@wanadoo.fr> 2021-05-06 22:46:01 +0200 committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-07-20 16:00:28 +0200 commit: 10d79d3bf5c45c8a82a88d3076206628856d59af parent: f02de04e14cf2ed7172300dfb5fe4d996b3adfac
Commit Summary:
remoteproc: k3-r5: Fix an error message
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/drivers/remoteproc/ti_k3_r5_remoteproc.c b/drivers/remoteproc/ti_k3_r5_remoteproc.c
index 5cf8d030a1f0..4104e4846dbf 100644
--- a/drivers/remoteproc/ti_k3_r5_remoteproc.c
+++ b/drivers/remoteproc/ti_k3_r5_remoteproc.c
@@ -1272,9 +1272,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;
 	}