summaryrefslogtreecommitdiffstats
path: root/drivers/soc/ti
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2017-01-12 15:53:41 +0100
committerTony Lindgren <tony@atomide.com>2017-01-12 22:37:49 +0100
commit36b29eb30ee0f6c99f06bea406c23a3fd4cbb80b (patch)
treeb902d4161f41bafb5a66cb549d12f36e38e840cf /drivers/soc/ti
parentARM: OMAP1: DMA: Correct the number of logical channels (diff)
downloadlinux-36b29eb30ee0f6c99f06bea406c23a3fd4cbb80b.tar.xz
linux-36b29eb30ee0f6c99f06bea406c23a3fd4cbb80b.zip
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: cdd5de500b2c ("soc: ti: Add wkup_m3_ipc driver") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'drivers/soc/ti')
-rw-r--r--drivers/soc/ti/wkup_m3_ipc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soc/ti/wkup_m3_ipc.c b/drivers/soc/ti/wkup_m3_ipc.c
index 8823cc81ae45..5bb376009d98 100644
--- a/drivers/soc/ti/wkup_m3_ipc.c
+++ b/drivers/soc/ti/wkup_m3_ipc.c
@@ -459,6 +459,7 @@ static int wkup_m3_ipc_probe(struct platform_device *pdev)
if (IS_ERR(task)) {
dev_err(dev, "can't create rproc_boot thread\n");
+ ret = PTR_ERR(task);
goto err_put_rproc;
}