Skip to content

Commit

Permalink
sdhci: check correct return value
Browse files Browse the repository at this point in the history
Fix a copy-and-paste error.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
  • Loading branch information
Pierre Ossman committed Aug 1, 2008
1 parent ebd6d35 commit 980167b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 980167b

Please sign in to comment.