fixed dma_addr() macro in ohci.c
authortheStack <sebastian.falbesoner@gmail.com>
Wed, 2 Sep 2009 14:26:35 +0000 (16:26 +0200)
committertheStack <sebastian.falbesoner@gmail.com>
Wed, 2 Sep 2009 14:26:35 +0000 (16:26 +0200)
ohci.c

diff --git a/ohci.c b/ohci.c
index 55b887ec84ac9fd245f256ecdc74c26e66aba421..04550f903bfeec385746e216e2b8678476fb3357 100644 (file)
--- a/ohci.c
+++ b/ohci.c
@@ -15,7 +15,7 @@ Copyright (C) 2009     Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
 
 #define gecko_printf printf
 #define set32(address, flags) write32(address, read32(address) | flags)
-#define dma_addr(address) (u32)address
+#define dma_addr(address) virt_to_phys(address)
 
 
 static struct ohci_hcca hcca_oh0;