Patchwork POWERPC: Make dma_addr_t a u64 if CONFIG_PHYS_64BIT is set

login
register
mail settings
Submitter Becky Bruce
Date Sept. 12, 2008, 8:53 p.m.
Message ID <1221252823-6291-1-git-send-email-becky.bruce@freescale.com>
Download mbox | patch
Permalink /patch/264/
State Accepted, archived
Commit b9579689ad3a208c342aed806afc7a9a808c4e1e
Headers show

Comments

Becky Bruce - Sept. 12, 2008, 8:53 p.m.
Signed-off-by: Becky Bruce <becky.bruce@freescale.com>

Patch

diff --git a/arch/powerpc/include/asm/types.h b/arch/powerpc/include/asm/types.h
index d3374bc..a9a9262 100644
--- a/arch/powerpc/include/asm/types.h
+++ b/arch/powerpc/include/asm/types.h
@@ -55,7 +55,7 @@  typedef u64 phys_addr_t;
 typedef u32 phys_addr_t;
 #endif
 
-#ifdef __powerpc64__
+#if defined(__powerpc64__) || defined(CONFIG_PHYS_64BIT)
 typedef u64 dma_addr_t;
 #else
 typedef u32 dma_addr_t;