POWERPC: Make dma_addr_t a u64 if CONFIG_PHYS_64BIT is set

Submitted by Becky Bruce on Sept. 12, 2008, 8:53 p.m.

Details

Message ID 1221252823-6291-1-git-send-email-becky.bruce@freescale.com
State Accepted, archived
Commit b9579689ad3a208c342aed806afc7a9a808c4e1e
Headers show

Commit Message

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

Patch hide | download patch | download mbox

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;