浏览代码

ARM: mach-shmobile: sh73a0: 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: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Magnus Damm 14 年之前
父节点
当前提交
416656ca42
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      arch/arm/mach-shmobile/include/mach/sh73a0.h

+ 1 - 0
arch/arm/mach-shmobile/include/mach/sh73a0.h

@@ -465,6 +465,7 @@ enum {
 };
 /* DMA slave IDs */
 enum {
+	SHDMA_SLAVE_INVALID,
 	SHDMA_SLAVE_SCIF0_TX,
 	SHDMA_SLAVE_SCIF0_RX,
 	SHDMA_SLAVE_SCIF1_TX,