Commit f37b7a30 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman

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

commit 36b29eb3 upstream.

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>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 97d5e205
...@@ -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