Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 222735
b: refs/heads/master
c: 214b574
h: refs/heads/master
i:
  222733: e70cf1e
  222731: 56b7ff3
  222727: 3ee6820
  222719: f858628
v: v3
  • Loading branch information
Jean-Christophe PLAGNIOL-VILLARD authored and Nicolas Ferre committed Nov 30, 2010
1 parent d1e91be commit 103e4a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 82d5b5c8da769184a9bc2cc2adc90555f4aa90b0
refs/heads/master: 214b574ab81236e7740243985d63a1d6a61231a2
6 changes: 5 additions & 1 deletion trunk/drivers/spi/atmel_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,12 @@ atmel_spi_dma_map_xfer(struct atmel_spi *as, struct spi_transfer *xfer)

xfer->tx_dma = xfer->rx_dma = INVALID_DMA_ADDRESS;
if (xfer->tx_buf) {
/* tx_buf is a const void* where we need a void * for the dma
* mapping */
void *nonconst_tx = (void *)xfer->tx_buf;

xfer->tx_dma = dma_map_single(dev,
(void *) xfer->tx_buf, xfer->len,
nonconst_tx, xfer->len,
DMA_TO_DEVICE);
if (dma_mapping_error(dev, xfer->tx_dma))
return -ENOMEM;
Expand Down

0 comments on commit 103e4a7

Please sign in to comment.