aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2008-07-22 13:23:23 +0200
committerPierre Ossman <drzeus@drzeus.cx>2008-07-23 14:42:09 +0200
commit719a61b452ff74cf81a96e4212748d9d63bcc924 (patch)
tree7196aaf30ad4ea8448d5b7cf9c9a2d32bbb10048 /drivers/mmc
parent6cefd05f35177ad5d22d44519c680cf43f2ac86d (diff)
downloadkernel_samsung_crespo-719a61b452ff74cf81a96e4212748d9d63bcc924.zip
kernel_samsung_crespo-719a61b452ff74cf81a96e4212748d9d63bcc924.tar.gz
kernel_samsung_crespo-719a61b452ff74cf81a96e4212748d9d63bcc924.tar.bz2
sdhci: fix bad warning from commit c8b3e02
Commit c8b3e02 renamed a variable, but missed one reference to it inside a WARN_ON, causing it to incorrectly trigger. Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index b27c1a2..8b1f412 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -689,7 +689,7 @@ static void sdhci_prepare_data(struct sdhci_host *host, struct mmc_data *data)
WARN_ON(1);
host->flags &= ~SDHCI_USE_DMA;
} else {
- WARN_ON(count != 1);
+ WARN_ON(sg_cnt != 1);
writel(sg_dma_address(data->sg),
host->ioaddr + SDHCI_DMA_ADDRESS);
}