ARM: mach-shmobile: mark DMA slave ID 0 as invalid
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 24 May 2011 10:24:03 +0000 (10:24 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 25 May 2011 02:37:19 +0000 (11:37 +0900)
This makes it possible to leave DMA slave IDs in the platform data
at default 0 value without hitting DMA channel allocation error paths.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/arm/mach-shmobile/include/mach/sh7372.h

index 5736efc..df20d76 100644 (file)
@@ -435,6 +435,7 @@ enum {
 
 /* DMA slave IDs */
 enum {
+       SHDMA_SLAVE_INVALID,
        SHDMA_SLAVE_SCIF0_TX,
        SHDMA_SLAVE_SCIF0_RX,
        SHDMA_SLAVE_SCIF1_TX,