From patchwork Mon Apr 28 00:58:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 4073511 Return-Path: X-Original-To: patchwork-linux-arm@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 7D48B9F169 for ; Mon, 28 Apr 2014 01:02:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C1F572017A for ; Mon, 28 Apr 2014 01:02:12 +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 F047C20179 for ; Mon, 28 Apr 2014 01:02:11 +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 1WeZuR-0003bc-LO; Mon, 28 Apr 2014 00:59:03 +0000 Received: from mail-ve0-f171.google.com ([209.85.128.171]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WeZuP-0003bA-EA for linux-arm-kernel@lists.infradead.org; Mon, 28 Apr 2014 00:59:01 +0000 Received: by mail-ve0-f171.google.com with SMTP id jy13so7435864veb.30 for ; Sun, 27 Apr 2014 17:58: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:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=SY4OFkHZX8QVZ8R+CC4u6mMAvrjovC1a5xrI1EAAgtk=; b=bepJ1m0ZEBCFcj3KX1+uwU/CWt8vC3XyZW75p4PUKGz0SigfWEeoBvR+aj8tAa/kMi rmCBe3yvH+3/cumQC7zy+RgFEzcu1MVFuPgAC+65DUl2t5z2a+GNZE1QSe5K46s8On7o b0IxyASm/gO4OVf3ssHYMb132JASiyaATfT7LlCVfsSx50fMFeCP+y4y04HiIx4x/MVG f8SAd+F9TDS9mYBcOOyOUKK3uWMcMok+SHttlMIvi2FFG3/OkFuKx1BDtJdbGMkvr2c0 I7l2dmorm+A1FjT48+Co2LppRpqTZUEp8tW3BegN2h7njSUEII1zcfTzOUpbzbGjPmBE ZsIQ== X-Gm-Message-State: ALoCoQmbhdpCe8ycqu8Lc6fj+ORfzYSLW7nRFiPsdkifKdy7uST7nkgpTCFgvtrpgn8616ZKQD9+ X-Received: by 10.58.122.164 with SMTP id lt4mr20802722veb.2.1398646715885; Sun, 27 Apr 2014 17:58:35 -0700 (PDT) Received: from [192.168.1.102] (111-240-65-69.dynamic.hinet.net. [111.240.65.69]) by mx.google.com with ESMTPSA id ha7sm32585111vdb.17.2014.04.27.17.58.33 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 27 Apr 2014 17:58:35 -0700 (PDT) Message-ID: <1398646711.10750.0.camel@phoenix> Subject: [PATCH] mmc: wmt-sdmmc: Use GFP_KERNEL instead of hard-coded value From: Axel Lin To: Chris Ball , Ulf Hansson Date: Mon, 28 Apr 2014 08:58:31 +0800 X-Mailer: Evolution 3.8.4-0ubuntu1 Mime-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140427_175901_549835_3D0C6C47 X-CRM114-Status: UNSURE ( 8.56 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Signed-off-by: Axel Lin --- drivers/mmc/host/wmt-sdmmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/wmt-sdmmc.c b/drivers/mmc/host/wmt-sdmmc.c index 34231d5..3605c37 100644 --- a/drivers/mmc/host/wmt-sdmmc.c +++ b/drivers/mmc/host/wmt-sdmmc.c @@ -852,7 +852,7 @@ static int wmt_mci_probe(struct platform_device *pdev) priv->dma_desc_buffer = dma_alloc_coherent(&pdev->dev, mmc->max_blk_count * 16, &priv->dma_desc_device_addr, - 208); + GFP_KERNEL); if (!priv->dma_desc_buffer) { dev_err(&pdev->dev, "DMA alloc fail\n"); ret = -EPERM;