diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-01-28 07:01:27 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-01-28 08:20:51 -0500 |
commit | a07c438faf952643f79983fb16a10f111c9df0df (patch) | |
tree | d42be5029f07477ee9dac3239d184a7279a1016b /arch/arm/plat-s3c24xx | |
parent | db9b85c527a397e4cb75956ae69acea92904f6dc (diff) |
[ARM] 4787/1: S3C24XX: s3c2410_dma_request() should return the allocated channel number
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>
Diffstat (limited to 'arch/arm/plat-s3c24xx')
-rw-r--r-- | arch/arm/plat-s3c24xx/dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-s3c24xx/dma.c b/arch/arm/plat-s3c24xx/dma.c index 68ce89db17db..9785983dfbae 100644 --- a/arch/arm/plat-s3c24xx/dma.c +++ b/arch/arm/plat-s3c24xx/dma.c | |||
@@ -787,7 +787,7 @@ int s3c2410_dma_request(unsigned int channel, | |||
787 | 787 | ||
788 | pr_debug("%s: channel initialised, %p\n", __FUNCTION__, chan); | 788 | pr_debug("%s: channel initialised, %p\n", __FUNCTION__, chan); |
789 | 789 | ||
790 | return 0; | 790 | return chan->number | DMACH_LOW_LEVEL; |
791 | } | 791 | } |
792 | 792 | ||
793 | EXPORT_SYMBOL(s3c2410_dma_request); | 793 | EXPORT_SYMBOL(s3c2410_dma_request); |