aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/ar7/platform.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-08-12 20:44:53 -0400
committerDavid S. Miller <davem@davemloft.net>2009-08-12 20:44:53 -0400
commitaa11d958d1a6572eda08214d7c6a735804fe48a5 (patch)
treed025b05270ad1e010660d17eeadc6ac3c1abbd7d /arch/mips/ar7/platform.c
parent07f6642ee9418e962e54cbc07471cfe2e559c568 (diff)
parent9799218ae36910af50f002a5db1802d576fffb43 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: arch/microblaze/include/asm/socket.h
Diffstat (limited to 'arch/mips/ar7/platform.c')
-rw-r--r--arch/mips/ar7/platform.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/mips/ar7/platform.c b/arch/mips/ar7/platform.c
index c4737ce6d29c..cf50fa29b198 100644
--- a/arch/mips/ar7/platform.c
+++ b/arch/mips/ar7/platform.c
@@ -28,7 +28,6 @@
28#include <linux/serial_8250.h> 28#include <linux/serial_8250.h>
29#include <linux/ioport.h> 29#include <linux/ioport.h>
30#include <linux/io.h> 30#include <linux/io.h>
31#include <linux/version.h>
32#include <linux/vlynq.h> 31#include <linux/vlynq.h>
33#include <linux/leds.h> 32#include <linux/leds.h>
34#include <linux/string.h> 33#include <linux/string.h>
@@ -251,13 +250,13 @@ static struct platform_device physmap_flash = {
251 .num_resources = 1, 250 .num_resources = 1,
252}; 251};
253 252
254static u64 cpmac_dma_mask = DMA_32BIT_MASK; 253static u64 cpmac_dma_mask = DMA_BIT_MASK(32);
255static struct platform_device cpmac_low = { 254static struct platform_device cpmac_low = {
256 .id = 0, 255 .id = 0,
257 .name = "cpmac", 256 .name = "cpmac",
258 .dev = { 257 .dev = {
259 .dma_mask = &cpmac_dma_mask, 258 .dma_mask = &cpmac_dma_mask,
260 .coherent_dma_mask = DMA_32BIT_MASK, 259 .coherent_dma_mask = DMA_BIT_MASK(32),
261 .platform_data = &cpmac_low_data, 260 .platform_data = &cpmac_low_data,
262 }, 261 },
263 .resource = cpmac_low_res, 262 .resource = cpmac_low_res,
@@ -269,7 +268,7 @@ static struct platform_device cpmac_high = {
269 .name = "cpmac", 268 .name = "cpmac",
270 .dev = { 269 .dev = {
271 .dma_mask = &cpmac_dma_mask, 270 .dma_mask = &cpmac_dma_mask,
272 .coherent_dma_mask = DMA_32BIT_MASK, 271 .coherent_dma_mask = DMA_BIT_MASK(32),
273 .platform_data = &cpmac_high_data, 272 .platform_data = &cpmac_high_data,
274 }, 273 },
275 .resource = cpmac_high_res, 274 .resource = cpmac_high_res,
@@ -489,6 +488,7 @@ static void __init detect_leds(void)
489static int __init ar7_register_devices(void) 488static int __init ar7_register_devices(void)
490{ 489{
491 int res; 490 int res;
491#ifdef CONFIG_SERIAL_8250
492 static struct uart_port uart_port[2]; 492 static struct uart_port uart_port[2];
493 493
494 memset(uart_port, 0, sizeof(struct uart_port) * 2); 494 memset(uart_port, 0, sizeof(struct uart_port) * 2);
@@ -520,7 +520,7 @@ static int __init ar7_register_devices(void)
520 if (res) 520 if (res)
521 return res; 521 return res;
522 } 522 }
523 523#endif /* CONFIG_SERIAL_8250 */
524 res = platform_device_register(&physmap_flash); 524 res = platform_device_register(&physmap_flash);
525 if (res) 525 if (res)
526 return res; 526 return res;