From patchwork Thu Oct 31 05:18:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 3118691 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4E7289F3E2 for ; Thu, 31 Oct 2013 05:19:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 76431203EC for ; Thu, 31 Oct 2013 05:19:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 69C6E203FB for ; Thu, 31 Oct 2013 05:19:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752570Ab3JaFTi (ORCPT ); Thu, 31 Oct 2013 01:19:38 -0400 Received: from mail-ie0-f170.google.com ([209.85.223.170]:60414 "EHLO mail-ie0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751904Ab3JaFTg (ORCPT ); Thu, 31 Oct 2013 01:19:36 -0400 Received: by mail-ie0-f170.google.com with SMTP id at1so4231012iec.29 for ; Wed, 30 Oct 2013 22:19:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-type:content-transfer-encoding; bh=AuNqSjTGRQrTNGdfI3dqeTwlKOv7pVZMToU9TZ+1/HI=; b=eitBAjfMhBFTzZ05KzkBIVrdpNjzIPtIO35ZBvKil4h6Kcdo4xi6BDh5WNlT3oU7Wk AJih0YAeBjd9hw9L0TBgosgiV6f90CfVHkC0sgnPrH2Q+X7PtSMe/hmd1q700tEeCutx fICC6O/jsl6YL9BtnrHyr1K0r03uDlv8dCq8GWE9hswUgzHrC1Hz0fZTHqf7SkDV/pc7 zDxdjGdZbZDnwU0hQTjXp7yCjPwkwwCElmphPnOfGhYZ5iZm6cpMw6nnoS2D1jWN1Fx/ zi4cxzmkrIY9H9CRwKT7EmUu+FXcCo2NBCg4hCdmcNS/Tp8tPxdlKa+1Xh7d9qnvGPzo 07lg== X-Gm-Message-State: ALoCoQl/uce6GN9WEkgybxqatOAmLcq72ZeEGQ+0zfxB8kGjdOUlgCw/yN5QAYQgtSxlzgEj6suP X-Received: by 10.50.1.102 with SMTP id 6mr5467792igl.0.1383196776148; Wed, 30 Oct 2013 22:19:36 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id x6sm10410308igb.3.2013.10.30.22.19.32 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 30 Oct 2013 22:19:35 -0700 (PDT) From: Sachin Kamat To: dmaengine@vger.kernel.org Cc: linux-samsung-soc@vger.kernel.org, dan.j.williams@intel.com, kgene.kim@samsung.com, sachin.kamat@linaro.org, Heiko Stuebner , Vinod Koul Subject: [PATCH 1/1] dmaengine: s3c24xx-dma: use DMA_COMPLETE for dma completion status Date: Thu, 31 Oct 2013 10:48:09 +0530 Message-Id: <1383196690-28307-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 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.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 Use the recently introduced DMA_COMPLETE instead of DMA_SUCCESS. Without this patch we get the following build error: drivers/dma/s3c24xx-dma.c: In function ‘s3c24xx_dma_tx_status’: drivers/dma/s3c24xx-dma.c:798:13: error: ‘DMA_SUCCESS’ undeclared (first use in this function) Signed-off-by: Sachin Kamat Cc: Heiko Stuebner Cc: Vinod Koul Acked-by: Vinod Koul Acked-by: Heiko Stuebner --- drivers/dma/s3c24xx-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/s3c24xx-dma.c b/drivers/dma/s3c24xx-dma.c index 4cb127978636..085da4fe6613 100644 --- a/drivers/dma/s3c24xx-dma.c +++ b/drivers/dma/s3c24xx-dma.c @@ -795,7 +795,7 @@ static enum dma_status s3c24xx_dma_tx_status(struct dma_chan *chan, spin_lock_irqsave(&s3cchan->vc.lock, flags); ret = dma_cookie_status(chan, cookie, txstate); - if (ret == DMA_SUCCESS) { + if (ret == DMA_COMPLETE) { spin_unlock_irqrestore(&s3cchan->vc.lock, flags); return ret; }