aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-07-28 07:25:40 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-07-28 07:25:40 +0000
commit7ae6473e357fa954832665f4b67b8d69753e0d94 (patch)
tree2ef991b4b85f87bf03dc9e0818a76c5923633a36
parentbc7f26dd5e4b49cc4b3e64de11cb0b1c27a67983 (diff)
downloadupstream-7ae6473e357fa954832665f4b67b8d69753e0d94.tar.gz
upstream-7ae6473e357fa954832665f4b67b8d69753e0d94.tar.bz2
upstream-7ae6473e357fa954832665f4b67b8d69753e0d94.zip
[adm5120] make use DMA_BIT_MASK
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11966 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/adm5120/files/arch/mips/adm5120/platform.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/adm5120/files/arch/mips/adm5120/platform.c b/target/linux/adm5120/files/arch/mips/adm5120/platform.c
index 841d68fa44..d61e7c65de 100644
--- a/target/linux/adm5120/files/arch/mips/adm5120/platform.c
+++ b/target/linux/adm5120/files/arch/mips/adm5120/platform.c
@@ -16,6 +16,7 @@
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/device.h>
+#include <linux/dma-mapping.h>
#include <linux/platform_device.h>
#include <asm/bootinfo.h>
@@ -89,16 +90,15 @@ struct resource adm5120_hcd_resources[] = {
},
};
-static u64 adm5120_hcd_dma_mask = ~(u32)0;
-
+static u64 adm5120_hcd_dma_mask = DMA_BIT_MASK(24);
struct platform_device adm5120_hcd_device = {
.name = "adm5120-hcd",
- .id = 0,
+ .id = -1,
.num_resources = ARRAY_SIZE(adm5120_hcd_resources),
.resource = adm5120_hcd_resources,
.dev = {
.dma_mask = &adm5120_hcd_dma_mask,
- .coherent_dma_mask = 0xFFFFFFFF,
+ .coherent_dma_mask = DMA_BIT_MASK(24),
}
};