Skip to content

Commit

Permalink
[ARM] 4787/1: S3C24XX: s3c2410_dma_request() should return the alloca…
Browse files Browse the repository at this point in the history
…ted 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>
  • Loading branch information
Ben Dooks authored and Russell King committed Jan 28, 2008
1 parent db9b85c commit a07c438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/plat-s3c24xx/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a07c438

Please sign in to comment.