From patchwork Wed Jul 17 07:28:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2828471 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 D6245C0AB2 for ; Wed, 17 Jul 2013 07:28:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CCAD520142 for ; Wed, 17 Jul 2013 07:28:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DA0222013D for ; Wed, 17 Jul 2013 07:28:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751698Ab3GQH2b (ORCPT ); Wed, 17 Jul 2013 03:28:31 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:47284 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750727Ab3GQH2a (ORCPT ); Wed, 17 Jul 2013 03:28:30 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MQ2003VTKPRUEI0@mailout1.samsung.com>; Wed, 17 Jul 2013 16:28:27 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.47]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id E1.E5.11618.B9746E15; Wed, 17 Jul 2013 16:28:27 +0900 (KST) X-AuditID: cbfee691-b7fef6d000002d62-25-51e6479ba1f8 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 5B.53.31505.A9746E15; Wed, 17 Jul 2013 16:28:27 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MQ200EKOKRE2390@mmp2.samsung.com>; Wed, 17 Jul 2013 16:28:26 +0900 (KST) From: Jingoo Han To: 'Mark Brown' Cc: linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, 'Joe Perches' , Jingoo Han Subject: [PATCH] spi: s3c64xx: fix casting warning Date: Wed, 17 Jul 2013 16:28:26 +0900 Message-id: <007801ce82bf$3a435a20$aeca0e60$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Content-language: ko Thread-index: Ac6Cvx+dPDDRsM8kRUuK/Cb4ix5TqQ== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJIsWRmVeSWpSXmKPExsVy+t8zfd3Z7s8CDQ6t5rCY+vAJm8XlhZdY LWbff8xiMeP8PiaLxo832R1YPTat6mTz+LLqGrNH35ZVjB6fN8kFsERx2aSk5mSWpRbp2yVw Zaz63ctccI+j4sHmG+wNjAvZuxg5OSQETCSeTr3DCGGLSVy4t56ti5GLQ0hgGaPE4+9nWWGK 1nR8YoJITGeU2NHXClX1i1Fiw5ybYFVsAmoSX74cBhrLwSEioCrx/5U7SJhZoJVR4tdMD5Cw sICRRNN2L5AwC1DF45OfGEHCvAKWEruPJoKEeQUEJX5MvscC0aklsXlbEyuELS+xec1bZohz FCR2nH3NCBEXkdj34h2YLSKgJzHn+gNmkMskBHaxSzT3rmSG2CUg8W3yIRaQXRICshKbDkDN kZQ4uOIGywRGsVlIVs9CsnoWktWzkKxbwMiyilE0tSC5oDgpvchUrzgxt7g0L10vOT93EyMk 2ibuYLx/wPoQYzLQ+onMUqLJ+cBozSuJNzQ2M7IwNTE1NjK3NCNNWEmcV73FOlBIID2xJDU7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2bu6WDJtbunefsvlbhy8cWnRbHr7hp/c592kCfi 2mVNJZbijERDLeai4kQA0S0MbikDAAA= 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.3 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 sdd->ops->request is unsigned int, not unsigned long. Thus, (void *) is converted to (unsigned long *)(unsigned long), in order to fix possible sparse warnings. Signed-off-by: Jingoo Han Cc: Joe Perches --- drivers/spi/spi-s3c64xx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 702a536..7577d79 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -336,10 +336,10 @@ static int acquire_dma(struct s3c64xx_spi_driver_data *sdd) req.cap = DMA_SLAVE; req.client = &s3c64xx_spi_dma_client; - sdd->rx_dma.ch = (void *)sdd->ops->request(sdd->rx_dma.dmach, - &req, dev, "rx"); - sdd->tx_dma.ch = (void *)sdd->ops->request(sdd->tx_dma.dmach, - &req, dev, "tx"); + sdd->rx_dma.ch = (unsigned long *)(unsigned long)sdd->ops->request( + sdd->rx_dma.dmach, &req, dev, "rx"); + sdd->tx_dma.ch = (unsigned long *)(unsigned long)sdd->ops->request( + sdd->tx_dma.dmach, &req, dev, "tx"); return 1; }