aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sh_mmcif.c
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@linux.intel.com>2011-10-14 01:15:11 -0400
committerVinod Koul <vinod.koul@linux.intel.com>2011-10-31 00:10:25 -0400
commit05f5799cbe5c9e2c03f604b3de5783cf4d726227 (patch)
treec70394eb8154fb5e717168af98889631078789e7 /drivers/mmc/host/sh_mmcif.c
parent1d0c81e876fe04295ef5df387ba057bf9cfae3d8 (diff)
mmc-host: move to dma_transfer_direction
fixup usage of dma direction by introducing dma_transfer_direction, this patch moves mmc drivers to use new enum Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Chris Ball <cjb@laptop.org> Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers/mmc/host/sh_mmcif.c')
-rw-r--r--drivers/mmc/host/sh_mmcif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c
index 557886bee9ce..0ae8d62dc976 100644
--- a/drivers/mmc/host/sh_mmcif.c
+++ b/drivers/mmc/host/sh_mmcif.c
@@ -230,7 +230,7 @@ static void sh_mmcif_start_dma_rx(struct sh_mmcif_host *host)
230 if (ret > 0) { 230 if (ret > 0) {
231 host->dma_active = true; 231 host->dma_active = true;
232 desc = chan->device->device_prep_slave_sg(chan, sg, ret, 232 desc = chan->device->device_prep_slave_sg(chan, sg, ret,
233 DMA_FROM_DEVICE, DMA_PREP_INTERRUPT | DMA_CTRL_ACK); 233 DMA_DEV_TO_MEM, DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
234 } 234 }
235 235
236 if (desc) { 236 if (desc) {
@@ -278,7 +278,7 @@ static void sh_mmcif_start_dma_tx(struct sh_mmcif_host *host)
278 if (ret > 0) { 278 if (ret > 0) {
279 host->dma_active = true; 279 host->dma_active = true;
280 desc = chan->device->device_prep_slave_sg(chan, sg, ret, 280 desc = chan->device->device_prep_slave_sg(chan, sg, ret,
281 DMA_TO_DEVICE, DMA_PREP_INTERRUPT | DMA_CTRL_ACK); 281 DMA_MEM_TO_DEV, DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
282 } 282 }
283 283
284 if (desc) { 284 if (desc) {