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: 4327171 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 C9A11BEEAA for ; Tue, 10 Jun 2014 09:03:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DD28520274 for ; Tue, 10 Jun 2014 09:03:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B6FDF20295 for ; Tue, 10 Jun 2014 09:03:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750910AbaFJJDs (ORCPT ); Tue, 10 Jun 2014 05:03:48 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:17928 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750717AbaFJJDq (ORCPT ); Tue, 10 Jun 2014 05:03:46 -0400 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-samsung-soc@vger.kernel.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 Cc: naveenkrishna.ch@gmail.com, broonie@kernel.org, grant.likely@secretlab.ca, jaswinder.singh@linaro.org, kgene.kim@samsung.com, cpgs@samsung.com, Javier Martinez Canillas , Doug Anderson 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 ILYQUEnz5qlgR0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JuamxqaWJhYmZpakCSuJ8x5otQ4UEkhPLEnNTk0tSC2C2cLE 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 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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);