]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] 4787/1: S3C24XX: s3c2410_dma_request() should return the allocated channel...
authorBen Dooks <ben-linux@fluff.org>
Mon, 28 Jan 2008 12:01:27 +0000 (13:01 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 28 Jan 2008 13:20:51 +0000 (13:20 +0000)
The s3c2410_dma_request() function should return the channel allocated
instead of zero for success.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/plat-s3c24xx/dma.c

index 68ce89db17dbe46ea053e00437700ee1bedbc765..9785983dfbae00e958c8fa65f357e6278992f479 100644 (file)
@@ -787,7 +787,7 @@ int s3c2410_dma_request(unsigned int channel,
 
        pr_debug("%s: channel initialised, %p\n", __FUNCTION__, chan);
 
-       return 0;
+       return chan->number | DMACH_LOW_LEVEL;
 }
 
 EXPORT_SYMBOL(s3c2410_dma_request);