diff options
Diffstat (limited to 'arch/mips/ar7/platform.c')
-rw-r--r-- | arch/mips/ar7/platform.c | 10 |
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 | ||
254 | static u64 cpmac_dma_mask = DMA_32BIT_MASK; | 253 | static u64 cpmac_dma_mask = DMA_BIT_MASK(32); |
255 | static struct platform_device cpmac_low = { | 254 | static 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) | |||
489 | static int __init ar7_register_devices(void) | 488 | static 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; |