summaryrefslogtreecommitdiff
path: root/target/linux
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
commitb04b1359464c81ea20d181bb1a714f09a994a933 (patch)
tree79245af405a58fea19bf801c5716287782192832 /target/linux
parent5cb5a026ee1020543270cb7c55bc4fa20128198f (diff)
downloadmtk-20170518-b04b1359464c81ea20d181bb1a714f09a994a933.zip
mtk-20170518-b04b1359464c81ea20d181bb1a714f09a994a933.tar.gz
mtk-20170518-b04b1359464c81ea20d181bb1a714f09a994a933.tar.bz2
make use DMA_BIT_MASK
SVN-Revision: 11966
Diffstat (limited to 'target/linux')
-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 841d68f..d61e7c6 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),
}
};