Skip to content

Commit

Permalink
sh: mark DMA slave ID 0 as invalid
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guennadi Liakhovetski authored and Paul Mundt committed May 25, 2011
1 parent 4e2b108 commit 5452555
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/sh/include/cpu-sh4/cpu/sh7722.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ enum {
};

enum {
SHDMA_SLAVE_INVALID,
SHDMA_SLAVE_SCIF0_TX,
SHDMA_SLAVE_SCIF0_RX,
SHDMA_SLAVE_SCIF1_TX,
Expand Down
1 change: 1 addition & 0 deletions arch/sh/include/cpu-sh4/cpu/sh7724.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ enum {
};

enum {
SHDMA_SLAVE_INVALID,
SHDMA_SLAVE_SCIF0_TX,
SHDMA_SLAVE_SCIF0_RX,
SHDMA_SLAVE_SCIF1_TX,
Expand Down
1 change: 1 addition & 0 deletions arch/sh/include/cpu-sh4/cpu/sh7757.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ enum {
};

enum {
SHDMA_SLAVE_INVALID,
SHDMA_SLAVE_SDHI_TX,
SHDMA_SLAVE_SDHI_RX,
SHDMA_SLAVE_MMCIF_TX,
Expand Down

0 comments on commit 5452555

Please sign in to comment.