From patchwork Thu Jan 12 14:53:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9513345 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 858D460710 for ; Thu, 12 Jan 2017 14:54:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 67D7E28626 for ; Thu, 12 Jan 2017 14:54:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 597E8286D3; Thu, 12 Jan 2017 14:54:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 11FE928626 for ; Thu, 12 Jan 2017 14:54:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cRglc-0001p1-Cf; Thu, 12 Jan 2017 14:54:16 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cRglU-0001nb-Nf for linux-arm-kernel@lists.infradead.org; Thu, 12 Jan 2017 14:54:14 +0000 Received: by mail-pf0-x243.google.com with SMTP id f144so3883176pfa.2 for ; Thu, 12 Jan 2017 06:53:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HjjYMccLuPu6BnC0FxpnXi1duCbCCM3x40hcx1qVd48=; b=XRTLOSC1Ou4vwhxqpPrhHEzC9n1ClqSkcyWn6f3SgJaR3RjLU6lQ9Pz8uZXbT9depG gZWwOeIcoFI33glwKJUZ3YbhweJwVXrlgYPhy+O7ok/PpHYvHaAD9TK6J4s6JGnHR5HI RIr8SlMIFsypWmy0DNC2nsIN0qXYroe3wHCzPxD+FDVqCgq93MWR6ziiWe5jzSji16pC wrFan//eDFAwi6yaBT0+nHXp8JGbBtrV9Yiqt4bM/rb1epSmZYKoMbZetQqyvcx5bGHb zlxhbkieSYJh2XyHmfwOiEGc99QOLj0ScXpZ811V7Da8RvX1nekRVWKo1SAL2iouxaeI 1pfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HjjYMccLuPu6BnC0FxpnXi1duCbCCM3x40hcx1qVd48=; b=ig3/KEqQhJm/+2xkBjS2/190NGB0etrFlMA3E9AljK0XcuJ1l3VU35d7n+DJ44dJIw UPsFqL33SXLRcnK2v6A5hR/hmxaxnho4sS65buzbQWb2TYd4RPkoa12h6e5cuVc8fq8K zCjn7DoJ/eL5A193ik3I5TT+4EYciPSqHouE7GGPSRLufHdyIAFuVecl8FZ1dB3FxDR2 NVlMIWhW9WcxpnkT6J6n/zqbWBSAATxceUTo+9I1LmGZG8Hxc2BiK/EvfvVeTY2gEDBO r6Z08nMNQt3jF0vHkouN4ljNB2E25SFXD2fOVu+Si9ENyy7k6o6fX7WT86Qc7jGw1UJt hO5Q== X-Gm-Message-State: AIkVDXLzWM31TP8zwpOgQ+S2MZ5pp8IP+ifA92apLulf4zU12tKs+fLx7A5AGdnN+FmBew== X-Received: by 10.84.218.71 with SMTP id f7mr16606953plm.59.1484232827922; Thu, 12 Jan 2017 06:53:47 -0800 (PST) Received: from 192.168.0.37 (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id y6sm22529650pge.16.2017.01.12.06.53.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jan 2017 06:53:47 -0800 (PST) From: Wei Yongjun To: Santosh Shilimkar , Dave Gerlach , Tony Lindgren Subject: [PATCH -next] soc: ti: wkup_m3_ipc: Fix error return code in wkup_m3_ipc_probe() Date: Thu, 12 Jan 2017 14:53:41 +0000 Message-Id: <20170112145341.783-1-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170112_065408_813124_76E3F325 X-CRM114-Status: GOOD ( 10.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wei Yongjun , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun 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 --- drivers/soc/ti/wkup_m3_ipc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/ti/wkup_m3_ipc.c b/drivers/soc/ti/wkup_m3_ipc.c index 8bfa44b..369aef5 100644 --- a/drivers/soc/ti/wkup_m3_ipc.c +++ b/drivers/soc/ti/wkup_m3_ipc.c @@ -457,6 +457,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; }