Skip to content

Commit

Permalink
spi/s3c64xx: Fix non-dmaengine usage
Browse files Browse the repository at this point in the history
The multiplatform conversion in commit 788437 (spi: s3c64xx: move to
generic dmaengine API) tested for the use of the Samsung-specific DMA
API with SAMSUNG_DMADEV when in fact S3C_DMA should be used. This
renderd DMA based transfers non-functional on platforms not using
dmaengine.

Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
broonie committed Apr 18, 2013
1 parent 142e07b commit 563b444
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/spi/spi-s3c64xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

#include <linux/platform_data/spi-s3c64xx.h>

#ifdef CONFIG_SAMSUNG_DMADEV
#ifdef CONFIG_S3C_DMA
#include <mach/dma.h>
#endif

Expand Down Expand Up @@ -199,7 +199,7 @@ struct s3c64xx_spi_driver_data {
unsigned cur_speed;
struct s3c64xx_spi_dma_data rx_dma;
struct s3c64xx_spi_dma_data tx_dma;
#ifdef CONFIG_SAMSUNG_DMADEV
#ifdef CONFIG_S3C_DMA
struct samsung_dma_ops *ops;
#endif
struct s3c64xx_spi_port_config *port_conf;
Expand Down Expand Up @@ -283,7 +283,7 @@ static void s3c64xx_spi_dmacb(void *data)
spin_unlock_irqrestore(&sdd->lock, flags);
}

#ifdef CONFIG_SAMSUNG_DMADEV
#ifdef CONFIG_S3C_DMA
/* FIXME: remove this section once arch/arm/mach-s3c64xx uses dmaengine */

static struct s3c2410_dma_client s3c64xx_spi_dma_client = {
Expand Down

0 comments on commit 563b444

Please sign in to comment.