From: Paul Mundt Date: Wed, 9 Nov 2005 17:50:57 +0000 (-0800) Subject: [PATCH] ARM: OMAP: MAX_DMA_CHANNELS definition X-Git-Tag: v2.6.15-omap2~102^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=64fec5f55736c116216685a614a24a44a807e4ef;p=linux-2.6-omap-h63xx.git [PATCH] ARM: OMAP: MAX_DMA_CHANNELS definition Currently OMAP doesn't define a MAX_DMA_CHANNELS value, which leads to: CC arch/arm/kernel/dma.o arch/arm/kernel/dma.c:27:5: warning: "MAX_DMA_CHANNELS" is not defined It seems like the sensible thing to do is to set this to 0 so this entire API is just avoided, as everything is using the OMAP-specific one now anyways. --- diff --git a/include/asm-arm/arch-omap/dma.h b/include/asm-arm/arch-omap/dma.h index 4830e578d05..ccbcb580a5c 100644 --- a/include/asm-arm/arch-omap/dma.h +++ b/include/asm-arm/arch-omap/dma.h @@ -22,6 +22,7 @@ #define __ASM_ARCH_DMA_H #define MAX_DMA_ADDRESS 0xffffffff +#define MAX_DMA_CHANNELS 0 /* Hardware registers for omap1 */ #define OMAP_DMA_BASE (0xfffed800)