sdhci: check correct return value
authorPierre Ossman <drzeus@drzeus.cx>
Mon, 28 Jul 2008 22:53:20 +0000 (00:53 +0200)
committerPierre Ossman <drzeus@drzeus.cx>
Fri, 1 Aug 2008 17:03:36 +0000 (19:03 +0200)
Fix a copy-and-paste error.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/host/sdhci.c

index 9191aaf2e52c7aac506d37651b606088649232a2..e3a8133560a2b41a19f15dd193a83c80d5727e4f 100644 (file)
@@ -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);