]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Compile fix OMAP1 DMA V4 Base
authorRagner Magalhaes <ragner.magalhaes@indt.org.br>
Mon, 25 Jun 2007 09:22:28 +0000 (02:22 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 25 Jun 2007 09:22:28 +0000 (02:22 -0700)
When OMAP1, OMAP_DMA4_BASE(DMA V4 Base) is not defined causing
the follow compile 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

Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>
Signed-off-by: Tony Lindgren <tony@atomide.com>
include/asm-arm/arch-omap/dma.h

index e9546df0915b8b5d9bf83c2e56bca0aaa9979a0f..8868397f2c5267592e0d9a2f3d236bb2ca517027 100644 (file)
@@ -47,7 +47,7 @@
 /* Hardware registers for omap2 */
 #if defined(CONFIG_ARCH_OMAP3)
 #define OMAP_DMA4_BASE                 (L4_34XX_BASE + 0x56000)
-#elif defined(CONFIG_ARCH_OMAP2)
+#else  /* CONFIG_ARCH_OMAP2 */
 #define OMAP_DMA4_BASE                 (L4_24XX_BASE + 0x56000)
 #endif