Преглед изворни кода

[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>
Ben Dooks пре 17 година
родитељ
комит
a07c438faf
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      arch/arm/plat-s3c24xx/dma.c

+ 1 - 1
arch/arm/plat-s3c24xx/dma.c

@@ -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);