Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102213
b: refs/heads/master
c: c8b3e02
h: refs/heads/master
i:
  102211: dcbd43b
v: v3
  • Loading branch information
Tomas Winkler authored and Pierre Ossman committed Jul 15, 2008
1 parent ecee87b commit aee5077
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 23af60398af2f5033e2f53665538a09f498dbc03
refs/heads/master: c8b3e02eb250ceb661437e9b198757eff0eb6fd2
8 changes: 4 additions & 4 deletions trunk/drivers/mmc/host/sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,14 +672,14 @@ static void sdhci_prepare_data(struct sdhci_host *host, struct mmc_data *data)
host->ioaddr + SDHCI_ADMA_ADDRESS);
}
} else {
int count;
int sg_cnt;

count = dma_map_sg(mmc_dev(host->mmc),
sg_cnt = dma_map_sg(mmc_dev(host->mmc),
data->sg, data->sg_len,
(data->flags & MMC_DATA_READ) ?
DMA_FROM_DEVICE :
DMA_TO_DEVICE);
if (count == 0) {
if (sg_cnt == 0) {
/*
* This only happens when someone fed
* us an invalid request.
Expand Down Expand Up @@ -1583,7 +1583,7 @@ int sdhci_add_host(struct sdhci_host *host)

/* XXX: Hack to get MMC layer to avoid highmem */
if (!(host->flags & SDHCI_USE_DMA))
mmc_dev(host->mmc)->dma_mask = 0;
mmc_dev(host->mmc)->dma_mask = NULL;

host->max_clk =
(caps & SDHCI_CLOCK_BASE_MASK) >> SDHCI_CLOCK_BASE_SHIFT;
Expand Down

0 comments on commit aee5077

Please sign in to comment.