Commit 36b29eb3 authored by Wei Yongjun's avatar Wei Yongjun Committed by Tony Lindgren

soc: ti: wkup_m3_ipc: Fix error return code in wkup_m3_ipc_probe()

Fix to return a negative error code from the kthread_run() error
handling case instead of 0, as done elsewhere in this function.

Fixes: cdd5de50 ("soc: ti: Add wkup_m3_ipc driver")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 65727977
...@@ -459,6 +459,7 @@ static int wkup_m3_ipc_probe(struct platform_device *pdev) ...@@ -459,6 +459,7 @@ static int wkup_m3_ipc_probe(struct platform_device *pdev)
if (IS_ERR(task)) { if (IS_ERR(task)) {
dev_err(dev, "can't create rproc_boot thread\n"); dev_err(dev, "can't create rproc_boot thread\n");
ret = PTR_ERR(task);
goto err_put_rproc; goto err_put_rproc;
} }
......
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