diff options
author | Pierre Ossman <drzeus@drzeus.cx> | 2008-07-29 00:53:20 +0200 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2008-08-01 19:03:36 +0200 |
commit | 980167b7fb20fb181766218b4771fc7420a7bbb4 (patch) | |
tree | 4be7c1327353ce1f374ae13cbb13eb1786b420cd /drivers/mmc/host/sdhci.c | |
parent | sdhci: disable DMA for req, not completely (diff) | |
download | linux-980167b7fb20fb181766218b4771fc7420a7bbb4.tar.xz linux-980167b7fb20fb181766218b4771fc7420a7bbb4.zip |
sdhci: check correct return value
Fix a copy-and-paste error.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc/host/sdhci.c')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 9191aaf2e52c..e3a8133560a2 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -448,7 +448,7 @@ static int sdhci_adma_table_pre(struct sdhci_host *host, host->adma_addr = dma_map_single(mmc_dev(host->mmc), host->adma_desc, (128 * 2 + 1) * 4, DMA_TO_DEVICE); - if (dma_mapping_error(mmc_dev(host->mmc), host->align_addr)) + if (dma_mapping_error(mmc_dev(host->mmc), host->adma_addr)) goto unmap_entries; BUG_ON(host->adma_addr & 0x3); |