sh: mark DMA slave ID 0 as invalid

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>
This commit is contained in:
Guennadi Liakhovetski 2011-05-24 10:23:59 +00:00 committed by Paul Mundt
parent 4e2b1084b0
commit 54525552c6
3 changed files with 3 additions and 0 deletions

View File

@ -236,6 +236,7 @@ enum {
}; };
enum { enum {
SHDMA_SLAVE_INVALID,
SHDMA_SLAVE_SCIF0_TX, SHDMA_SLAVE_SCIF0_TX,
SHDMA_SLAVE_SCIF0_RX, SHDMA_SLAVE_SCIF0_RX,
SHDMA_SLAVE_SCIF1_TX, SHDMA_SLAVE_SCIF1_TX,

View File

@ -285,6 +285,7 @@ enum {
}; };
enum { enum {
SHDMA_SLAVE_INVALID,
SHDMA_SLAVE_SCIF0_TX, SHDMA_SLAVE_SCIF0_TX,
SHDMA_SLAVE_SCIF0_RX, SHDMA_SLAVE_SCIF0_RX,
SHDMA_SLAVE_SCIF1_TX, SHDMA_SLAVE_SCIF1_TX,

View File

@ -252,6 +252,7 @@ enum {
}; };
enum { enum {
SHDMA_SLAVE_INVALID,
SHDMA_SLAVE_SDHI_TX, SHDMA_SLAVE_SDHI_TX,
SHDMA_SLAVE_SDHI_RX, SHDMA_SLAVE_SDHI_RX,
SHDMA_SLAVE_MMCIF_TX, SHDMA_SLAVE_MMCIF_TX,