aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 b27c1a28a7ca..8b1f412144cf 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)
689 WARN_ON(1); 689 WARN_ON(1);
690 host->flags &= ~SDHCI_USE_DMA; 690 host->flags &= ~SDHCI_USE_DMA;
691 } else { 691 } else {
692 WARN_ON(count != 1); 692 WARN_ON(sg_cnt != 1);
693 writel(sg_dma_address(data->sg), 693 writel(sg_dma_address(data->sg),
694 host->ioaddr + SDHCI_DMA_ADDRESS); 694 host->ioaddr + SDHCI_DMA_ADDRESS);
695 } 695 }