Commit 719a61b4 authored by Pierre Ossman's avatar Pierre Ossman

sdhci: fix bad warning from commit c8b3e02e

Commit c8b3e02e renamed a variable, but missed one reference to it
inside a WARN_ON, causing it to incorrectly trigger.
Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent 6cefd05f
...@@ -689,7 +689,7 @@ static void sdhci_prepare_data(struct sdhci_host *host, struct mmc_data *data) ...@@ -689,7 +689,7 @@ static void sdhci_prepare_data(struct sdhci_host *host, struct mmc_data *data)
WARN_ON(1); WARN_ON(1);
host->flags &= ~SDHCI_USE_DMA; host->flags &= ~SDHCI_USE_DMA;
} else { } else {
WARN_ON(count != 1); WARN_ON(sg_cnt != 1);
writel(sg_dma_address(data->sg), writel(sg_dma_address(data->sg),
host->ioaddr + SDHCI_DMA_ADDRESS); host->ioaddr + SDHCI_DMA_ADDRESS);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment