[PATCH 1/5] ARM: DAVINCI: Fix warning in dma.c

Dirk Behme dirk.behme at googlemail.com
Thu Aug 2 13:29:25 CDT 2007


Fix warning

arch/arm/mach-davinci/dma.c: In function 'arch_dma_init':
arch/arm/mach-davinci/dma.c:666: warning: format '%x' expects type
'unsigned int', but argument 3 has type 'volatile struct edmacc_regs *'

Signed-off-by: Dirk Behme <dirk.behme at gmail.com>
-------------- next part --------------
Index: linux-davinci/arch/arm/mach-davinci/dma.c
===================================================================
--- linux-davinci.orig/arch/arm/mach-davinci/dma.c
+++ linux-davinci/arch/arm/mach-davinci/dma.c
@@ -663,7 +663,8 @@ int __init arch_dma_init(void)
 	edma_dev.dev.driver = &edma_driver;
 
 	ptr_edmacc_regs = get_edma_base();
-	dev_dbg(&edma_dev.dev, "DMA REG BASE ADDR=%x\n", ptr_edmacc_regs);
+	dev_dbg(&edma_dev.dev, "DMA REG BASE ADDR=%x\n", 
+	       (unsigned int)ptr_edmacc_regs);
 	memset(dma_chan, 0x00, sizeof(dma_chan));
 	memset((void *)&(ptr_edmacc_regs->paramentry[0]), 0x00,
 	       sizeof(ptr_edmacc_regs->paramentry));



More information about the Davinci-linux-open-source mailing list