ARM: S3C24XX: DMA: Use valid index when accessing array
authorRamax Lo <ramaxlo@gmail.com>
Tue, 8 Dec 2009 15:42:41 +0000 (23:42 +0800)
committerBen Dooks <ben-linux@fluff.org>
Tue, 8 Dec 2009 23:09:05 +0000 (23:09 +0000)
commit947a2462792a89b8aa168a1108288e0d0ae36d12
tree7f81e692fad20b9a2de0cd759dcb750da9e9cc65
parent93b0d8c6b67b7d337509a36dbfcdb6d6eac1ef12
ARM: S3C24XX: DMA: Use valid index when accessing array

The DMA_CH_VALID bit used in the channel index should be masked out before
using it to access the channel array.

Signed-off-by: Ramax Lo <ramaxlo@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-s3c24xx/dma.c