Commit 8e84c148 authored by Florian Fainelli's avatar Florian Fainelli Committed by Ralf Baechle

MIPS: AR7: Use DMA_BIT_MASK(nn) instead of deprecated DMA_nnBIT_MASK

Signed-off-by: default avatarFlorian Fainelli <florian@openwrt.org>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 50ca9619
...@@ -242,13 +242,13 @@ static struct platform_device physmap_flash = { ...@@ -242,13 +242,13 @@ static struct platform_device physmap_flash = {
.num_resources = 1, .num_resources = 1,
}; };
static u64 cpmac_dma_mask = DMA_32BIT_MASK; static u64 cpmac_dma_mask = DMA_BIT_MASK(32);
static struct platform_device cpmac_low = { static struct platform_device cpmac_low = {
.id = 0, .id = 0,
.name = "cpmac", .name = "cpmac",
.dev = { .dev = {
.dma_mask = &cpmac_dma_mask, .dma_mask = &cpmac_dma_mask,
.coherent_dma_mask = DMA_32BIT_MASK, .coherent_dma_mask = DMA_BIT_MASK(32),
.platform_data = &cpmac_low_data, .platform_data = &cpmac_low_data,
}, },
.resource = cpmac_low_res, .resource = cpmac_low_res,
...@@ -260,7 +260,7 @@ static struct platform_device cpmac_high = { ...@@ -260,7 +260,7 @@ static struct platform_device cpmac_high = {
.name = "cpmac", .name = "cpmac",
.dev = { .dev = {
.dma_mask = &cpmac_dma_mask, .dma_mask = &cpmac_dma_mask,
.coherent_dma_mask = DMA_32BIT_MASK, .coherent_dma_mask = DMA_BIT_MASK(32),
.platform_data = &cpmac_high_data, .platform_data = &cpmac_high_data,
}, },
.resource = cpmac_high_res, .resource = cpmac_high_res,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment