From patchwork Tue Jun 10 09:00:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveen Krishna Chatradhi X-Patchwork-Id: 4327211 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EAE8FBEECB for ; Tue, 10 Jun 2014 09:06:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3699C202AE for ; Tue, 10 Jun 2014 09:06:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5312720295 for ; Tue, 10 Jun 2014 09:06:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WuHyi-0008RN-0n; Tue, 10 Jun 2014 09:04:24 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WuHya-0008MB-07 for linux-arm-kernel@lists.infradead.org; Tue, 10 Jun 2014 09:04:19 +0000 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N6Y001BV3U9HF80@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 10 Jun 2014 18:03:45 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.124]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 37.83.13369.0F9C6935; Tue, 10 Jun 2014 18:03:44 +0900 (KST) X-AuditID: cbfee690-b7fb56d000003439-6f-5396c9f0ac96 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id EC.36.08203.0F9C6935; Tue, 10 Jun 2014 18:03:44 +0900 (KST) Received: from chnaveen-ubuntu.sisodomain.com ([107.108.83.161]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N6Y001LS3TZFN20@mmp1.samsung.com>; Tue, 10 Jun 2014 18:03:44 +0900 (KST) From: Naveen Krishna Chatradhi To: linux-arm-kernel@lists.infradead.org, spi-devel-general@lists.sourceforge.net, linux-samsung-soc@vger.kernel.org Subject: [PATCH 2/3] spi: s3c64xx: remove a compilation warning with an assignment Date: Tue, 10 Jun 2014 14:30:58 +0530 Message-id: <1402390859-28287-3-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1402390859-28287-1-git-send-email-ch.naveen@samsung.com> References: <1402390859-28287-1-git-send-email-ch.naveen@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPIsWRmVeSWpSXmKPExsWyRsSkRvfDyWnBBteuWltMffiEzeLlIU2L s8sOslm8OrORzWLypvuMFkd/F1j0LrjKZrHp8TVWixnn9zFZLNr2n9niyJRGdgduj9kNF1k8 /j6/zuKxc9Zddo9NqzrZPO5c28PmsXlJvcfuBZ+ZPPq2rGL0+PlSx+PzJrkArigum5TUnMyy 1CJ9uwSujK9HjzMVHGOr+P3/JHMD427WLkZODgkBE4kzazrZIGwxiQv31gPZXBxCAksZJd5s XMIOUzTh+wl2iMQiRon7F9cxQTj9TBKTZy9jAaliEzCTOLhoNVAVB4eIQJnEvAl1IDXMAr8Z Jc7eOwS2QlggRGLC5YtgU1kEVCXOPHrHDGLzCrhKPDrWyQTSKyGgIDFnkg1ImFPATWLXtStM ILYQUEnz5qlgR0gIPGKX2L/tGC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pakCSuJ8x5otQ4UEkhPLEnNTk0tSC2C2cLE wSnVwNhae2bhnOMbszIu9M9f+aji4UN/p8fS67lX1b9cOb3C2XH2h46+5Iv8CXYTjVYc+9Gs WTHhg8GmGYydHs+iHrhWXqmoNFotPDGed4nC4w+xJe/PT0ptvuljf/XG6+/a1Qc3H/macEjr 0LpT6l95TD1LmPI/fmUWnpWjc1W16m61UvMFlj252bFKLMUZiYZazEXFiQCzfIPNDwMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140610_020416_213681_DA053CE6 X-CRM114-Status: UNSURE ( 8.65 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.7 (-----) Cc: kgene.kim@samsung.com, Doug Anderson , grant.likely@secretlab.ca, jaswinder.singh@linaro.org, broonie@kernel.org, cpgs@samsung.com, naveenkrishna.ch@gmail.com, Javier Martinez Canillas X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch returns an integer error value instead of the pointer. "warning: return makes integer from pointer without a cast" Signed-off-by: Naveen Krishna Chatradhi Cc: Javier Martinez Canillas Cc: Doug Anderson --- drivers/spi/spi-s3c64xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 0c6013f..4594dde 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -817,7 +817,7 @@ static int s3c64xx_spi_setup(struct spi_device *spi) if (!spi->dev.of_node) { dev_err(&spi->dev, "device node not found\n"); - return ERR_PTR(-EINVAL); + return -EINVAL; } sdd = spi_master_get_devdata(spi->master);