aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c64xx/dma.c
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2013-04-04 01:37:57 -0400
committerKukjin Kim <kgene.kim@samsung.com>2013-04-04 02:17:09 -0400
commitf6281dbe4a92fe7d6758853d8db5f53a67bc9709 (patch)
tree91c582d5eed00595f9d0ef7d26096ae12e080120 /arch/arm/mach-s3c64xx/dma.c
parent8521420375d0e6824a76fda24677f428c1d3f598 (diff)
ARM: S3C64XX: Clear DMA flags on channel request
This patch clears the DMA flags when a DMA channel is requested. This is necessary because otherwise the channel may inherit incompatible settings from its last usage. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s3c64xx/dma.c')
-rw-r--r--arch/arm/mach-s3c64xx/dma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c64xx/dma.c b/arch/arm/mach-s3c64xx/dma.c
index 6af1aa1ef213..759846c28d12 100644
--- a/arch/arm/mach-s3c64xx/dma.c
+++ b/arch/arm/mach-s3c64xx/dma.c
@@ -509,6 +509,7 @@ int s3c2410_dma_request(enum dma_ch channel,
509 chan->client = client; 509 chan->client = client;
510 chan->in_use = 1; 510 chan->in_use = 1;
511 chan->peripheral = channel; 511 chan->peripheral = channel;
512 chan->flags = 0;
512 513
513 local_irq_restore(flags); 514 local_irq_restore(flags);
514 515