mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tomas Winkler <tomas.winkler@intel.com>
To: drzeus-list@drzeus.cx
Cc: marcel@holtmann.org, linux-kernel@vger.kernel.org,
	Tomas Winkler <tomas.winkler@intel.com>
Subject: [PATCH 4/5] MMC: fix spares errors of sdhci.c
Date: Tue,  1 Jul 2008 02:53:03 +0300	[thread overview]
Message-ID: <1214869984-20115-4-git-send-email-tomas.winkler@intel.com> (raw)
In-Reply-To: <1214869984-20115-3-git-send-email-tomas.winkler@intel.com>

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
---
 drivers/mmc/host/sdhci.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 6441e44..aa268e3 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -386,12 +386,12 @@ static void sdhci_prepare_data(struct sdhci_host *host, struct mmc_data *data)
 	}
 
 	if (host->flags & SDHCI_REQ_USE_DMA) {
-		int count;
+		int dma_cnt;
 
-		count = dma_map_sg(mmc_dev(host->mmc), data->sg, data->sg_len,
+		dma_cnt = dma_map_sg(mmc_dev(host->mmc), data->sg, data->sg_len,
 				(data->flags & MMC_DATA_READ) ?
 					DMA_FROM_DEVICE : DMA_TO_DEVICE);
-		WARN_ON(count != 1);
+		WARN_ON(dma_cnt != 1);
 
 		writel(sg_dma_address(data->sg),
 			host->ioaddr + SDHCI_DMA_ADDRESS);
@@ -1224,7 +1224,7 @@ int sdhci_add_host(struct sdhci_host *host)
 
 	/* XXX: Hack to get MMC layer to avoid highmem */
 	if (!(host->flags & SDHCI_USE_DMA))
-		mmc_dev(host->mmc)->dma_mask = 0;
+		mmc_dev(host->mmc)->dma_mask = NULL;
 
 	host->max_clk =
 		(caps & SDHCI_CLOCK_BASE_MASK) >> SDHCI_CLOCK_BASE_SHIFT;
-- 
1.5.4.1

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


  reply	other threads:[~2008-06-30 23:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-30 23:53 [PATCH 1/5 V2] MMC: core - fix the use of hard coded timeout value Tomas Winkler
2008-06-30 23:53 ` [PATCH 2/5 V2] MMC: wbsd.c fix shadowing of 'dma' variable Tomas Winkler
2008-06-30 23:53   ` [PATCH 3/5] MMC: fix sdio_io sparse errors Tomas Winkler
2008-06-30 23:53     ` Tomas Winkler [this message]
2008-06-30 23:53       ` [PATCH 5/5] MMC: cleanup endianity conversions Tomas Winkler
2008-07-01  1:51         ` Marcel Holtmann
2008-07-01  1:47       ` [PATCH 4/5] MMC: fix spares errors of sdhci.c Marcel Holtmann
2008-07-01  1:54     ` [PATCH 3/5] MMC: fix sdio_io sparse errors Marcel Holtmann
2008-07-01  1:44   ` [PATCH 2/5 V2] MMC: wbsd.c fix shadowing of 'dma' variable Marcel Holtmann
2008-07-05 22:38   ` Pierre Ossman
2008-07-01  1:45 ` [PATCH 1/5 V2] MMC: core - fix the use of hard coded timeout value Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1214869984-20115-4-git-send-email-tomas.winkler@intel.com \
    --to=tomas.winkler@intel.com \
    --cc=drzeus-list@drzeus.cx \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcel@holtmann.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®