summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGusakov Andrey <dron0gus@gmail.com>2012-03-03 07:32:36 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-12 12:31:25 -0700
commit69c59bc6c4e7d29aabb9e7fa5825b774044940c5 (patch)
tree6a65ac207ec7f1b9715878fd67d8fa1158830160 /arch
parent8ab46fc85e924390c6e8a941ac7786dc10158c05 (diff)
ARM: S3C24XX: DMA resume regression fix
commit e39d40c65dfd8390b50c03482ae9e289b8a8f351 upstream. s3c2410_dma_suspend suspends channels from 0 to dma_channels. s3c2410_dma_resume resumes channels in reverse order. So pointer should be decremented instead of being incremented. Signed-off-by: Gusakov Andrey <dron0gus@gmail.com> Reviewed-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/plat-s3c24xx/dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-s3c24xx/dma.c b/arch/arm/plat-s3c24xx/dma.c
index 53754bcf15a7..8a90b6ae0810 100644
--- a/arch/arm/plat-s3c24xx/dma.c
+++ b/arch/arm/plat-s3c24xx/dma.c
@@ -1249,7 +1249,7 @@ static void s3c2410_dma_resume(void)
struct s3c2410_dma_chan *cp = s3c2410_chans + dma_channels - 1;
int channel;
- for (channel = dma_channels - 1; channel >= 0; cp++, channel--)
+ for (channel = dma_channels - 1; channel >= 0; cp--, channel--)
s3c2410_dma_resume_chan(cp);
}