Compile fix OMAP1 DMA V4 Base
PATCH 1/1 Compile fix OMAP1 DMA V4 Base
From: Ragner Magalhaes <[email protected]>
when OMAP1, OMAP_DMA4_BASE(DMA V4 Base) is not defined causing the follow complile error:
arch/arm/plat-omap/dma.c: In function 'omap_set_dma_src_params':arch/arm/plat-omap/dma.c:273: error: 'OMAP_DMA4_BASE' undeclared (first use in this function) arch/arm/plat-omap/dma.c:273: error: (Each undeclared identifier is reported only once arch/arm/plat-omap/dma.c:273: error: for each function it appears in.)
...
make[1]: *** [arch/arm/plat-omap/dma.o] Error 1
---
include/asm-arm/arch-omap/dma.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
include/asm-arm/arch-omap/dma.h +2 -0
@@ -49,6 +49,8 @@#define OMAP_DMA4_BASE (L4_34XX_BASE + 0x56000)#elif defined(CONFIG_ARCH_OMAP2 )#define OMAP_DMA4_BASE (L4_24XX_BASE + 0x56000) +#else +#define OMAP_DMA4_BASE (L4_24XX_BASE + 0x56000)#endif #define OMAP_DMA4_REVISION (OMAP_DMA4_BASE + 0x00)
Quoted 22 lines · Ragner Magalhaes
From: Ragner Magalhaes <[email protected]>
when OMAP1,
OMAP_DMA4_BASE(DMA V4 Base)is not defined causing the follow complile error:
arch/arm/plat-omap/dma.c: In function 'omap_set_dma_src_params':arch/arm/plat-omap/dma.c:273: error: 'OMAP_DMA4_BASE' undeclared (first use in this function)arch/arm/plat-omap/dma.c:273: error: (Each undeclared identifier is reported only oncearch/arm/plat-omap/dma.c:273: error: for each function it appears in.)
...
make[1]: *** [arch/arm/plat-omap/dma.o] Error 1Signed-off-by Ragner Magalhaes <[email protected]>---
include/asm-arm/arch-omap/dma.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)include/asm-arm/arch-omap/dma.h +0
-0
include/asm-arm/arch-omap/dma.h line 56
Quoted 8 lines
include/asm-arm/arch-omap/dma.h +2
-0@@ -49,6 +49,8 @@#define OMAP_DMA4_BASE (L4_34XX_BASE + 0x56000)#elif defined(CONFIG_ARCH_OMAP2 )#define OMAP_DMA4_BASE (L4_24XX_BASE + 0x56000) +#else +#define OMAP_DMA4_BASE (L4_24XX_BASE + 0x56000)#endif #define OMAP_DMA4_REVISION (OMAP_DMA4_BASE + 0x00)
Thanks, I've applied it slightly modified to replace the second elif with just else.
Tony