aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorJassi Brar <jassi.brar@samsung.com>2010-09-02 21:36:26 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-09-08 14:03:45 -0400
commit251ee478f2c877a9a80362e094c542fbac7f5651 (patch)
tree136929d46d1a97eff3bc1c286c15d0c915b4a717 /drivers/spi
parente3e55ff5854655d8723ad8b307f02515aecc3df5 (diff)
spi/s3c64xx: Fix compilation warning
Fix compilation warning by typecasting the tx_buf pointer. [I'm not thrilled with resorting to a cast; but I cannot see a better way to go about this. I don't want to drop the const from struct spi_transfer ~~glikely] Signed-off-by: Jassi Brar <jassi.brar@samsung.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi_s3c64xx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/spi/spi_s3c64xx.c b/drivers/spi/spi_s3c64xx.c
index 8130f02dc466..240b690a8a6f 100644
--- a/drivers/spi/spi_s3c64xx.c
+++ b/drivers/spi/spi_s3c64xx.c
@@ -508,8 +508,9 @@ static int s3c64xx_spi_map_mssg(struct s3c64xx_spi_driver_data *sdd,
508 list_for_each_entry(xfer, &msg->transfers, transfer_list) { 508 list_for_each_entry(xfer, &msg->transfers, transfer_list) {
509 509
510 if (xfer->tx_buf != NULL) { 510 if (xfer->tx_buf != NULL) {
511 xfer->tx_dma = dma_map_single(dev, xfer->tx_buf, 511 xfer->tx_dma = dma_map_single(dev,
512 xfer->len, DMA_TO_DEVICE); 512 (void *)xfer->tx_buf, xfer->len,
513 DMA_TO_DEVICE);
513 if (dma_mapping_error(dev, xfer->tx_dma)) { 514 if (dma_mapping_error(dev, xfer->tx_dma)) {
514 dev_err(dev, "dma_map_single Tx failed\n"); 515 dev_err(dev, "dma_map_single Tx failed\n");
515 xfer->tx_dma = XFER_DMAADDR_INVALID; 516 xfer->tx_dma = XFER_DMAADDR_INVALID;