diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-07-24 07:18:16 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-08-03 12:52:45 -0400 |
commit | 8e84c1480d2e7d98d487b567100717b9cc9dcfd7 (patch) | |
tree | 9ba61dfdf844f2836e37f50c17518a844b72ede3 /arch/mips/ar7 | |
parent | 50ca961912be315035cb0f3508e35c974851da2a (diff) |
MIPS: AR7: Use DMA_BIT_MASK(nn) instead of deprecated DMA_nnBIT_MASK
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/ar7')
-rw-r--r-- | arch/mips/ar7/platform.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/ar7/platform.c b/arch/mips/ar7/platform.c index 8ef8266e47f4..2ecab6155932 100644 --- a/arch/mips/ar7/platform.c +++ b/arch/mips/ar7/platform.c | |||
@@ -242,13 +242,13 @@ static struct platform_device physmap_flash = { | |||
242 | .num_resources = 1, | 242 | .num_resources = 1, |
243 | }; | 243 | }; |
244 | 244 | ||
245 | static u64 cpmac_dma_mask = DMA_32BIT_MASK; | 245 | static u64 cpmac_dma_mask = DMA_BIT_MASK(32); |
246 | static struct platform_device cpmac_low = { | 246 | static struct platform_device cpmac_low = { |
247 | .id = 0, | 247 | .id = 0, |
248 | .name = "cpmac", | 248 | .name = "cpmac", |
249 | .dev = { | 249 | .dev = { |
250 | .dma_mask = &cpmac_dma_mask, | 250 | .dma_mask = &cpmac_dma_mask, |
251 | .coherent_dma_mask = DMA_32BIT_MASK, | 251 | .coherent_dma_mask = DMA_BIT_MASK(32), |
252 | .platform_data = &cpmac_low_data, | 252 | .platform_data = &cpmac_low_data, |
253 | }, | 253 | }, |
254 | .resource = cpmac_low_res, | 254 | .resource = cpmac_low_res, |
@@ -260,7 +260,7 @@ static struct platform_device cpmac_high = { | |||
260 | .name = "cpmac", | 260 | .name = "cpmac", |
261 | .dev = { | 261 | .dev = { |
262 | .dma_mask = &cpmac_dma_mask, | 262 | .dma_mask = &cpmac_dma_mask, |
263 | .coherent_dma_mask = DMA_32BIT_MASK, | 263 | .coherent_dma_mask = DMA_BIT_MASK(32), |
264 | .platform_data = &cpmac_high_data, | 264 | .platform_data = &cpmac_high_data, |
265 | }, | 265 | }, |
266 | .resource = cpmac_high_res, | 266 | .resource = cpmac_high_res, |