diff options
| author | David S. Miller <davem@davemloft.net> | 2009-08-12 20:44:53 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2009-08-12 20:44:53 -0400 |
| commit | aa11d958d1a6572eda08214d7c6a735804fe48a5 (patch) | |
| tree | d025b05270ad1e010660d17eeadc6ac3c1abbd7d /arch/mips/ar7 | |
| parent | 07f6642ee9418e962e54cbc07471cfe2e559c568 (diff) | |
| parent | 9799218ae36910af50f002a5db1802d576fffb43 (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')
| -rw-r--r-- | arch/mips/ar7/Makefile | 1 | ||||
| -rw-r--r-- | arch/mips/ar7/clock.c | 13 | ||||
| -rw-r--r-- | arch/mips/ar7/memory.c | 2 | ||||
| -rw-r--r-- | arch/mips/ar7/platform.c | 10 | ||||
| -rw-r--r-- | arch/mips/ar7/prom.c | 2 | ||||
| -rw-r--r-- | arch/mips/ar7/setup.c | 1 |
6 files changed, 8 insertions, 21 deletions
diff --git a/arch/mips/ar7/Makefile b/arch/mips/ar7/Makefile index 7435e44b3964..26bc5da18997 100644 --- a/arch/mips/ar7/Makefile +++ b/arch/mips/ar7/Makefile | |||
| @@ -8,3 +8,4 @@ obj-y := \ | |||
| 8 | platform.o \ | 8 | platform.o \ |
| 9 | gpio.o \ | 9 | gpio.o \ |
| 10 | clock.o | 10 | clock.o |
| 11 | EXTRA_CFLAGS += -Werror | ||
diff --git a/arch/mips/ar7/clock.c b/arch/mips/ar7/clock.c index 27dc6663f2fa..cc65c8eb391b 100644 --- a/arch/mips/ar7/clock.c +++ b/arch/mips/ar7/clock.c | |||
| @@ -264,19 +264,6 @@ static void __init tnetd7300_init_clocks(void) | |||
| 264 | iounmap(bootcr); | 264 | iounmap(bootcr); |
| 265 | } | 265 | } |
| 266 | 266 | ||
| 267 | static int tnetd7200_get_clock(int base, struct tnetd7200_clock *clock, | ||
| 268 | u32 *bootcr, u32 bus_clock) | ||
| 269 | { | ||
| 270 | int divisor = ((readl(&clock->prediv) & 0x1f) + 1) * | ||
| 271 | ((readl(&clock->postdiv) & 0x1f) + 1); | ||
| 272 | |||
| 273 | if (*bootcr & BOOT_PLL_BYPASS) | ||
| 274 | return base / divisor; | ||
| 275 | |||
| 276 | return base * ((readl(&clock->mul) & 0xf) + 1) / divisor; | ||
| 277 | } | ||
| 278 | |||
| 279 | |||
| 280 | static void tnetd7200_set_clock(int base, struct tnetd7200_clock *clock, | 267 | static void tnetd7200_set_clock(int base, struct tnetd7200_clock *clock, |
| 281 | int prediv, int postdiv, int postdiv2, int mul, u32 frequency) | 268 | int prediv, int postdiv, int postdiv2, int mul, u32 frequency) |
| 282 | { | 269 | { |
diff --git a/arch/mips/ar7/memory.c b/arch/mips/ar7/memory.c index 46fed44825a6..696c723dc6d4 100644 --- a/arch/mips/ar7/memory.c +++ b/arch/mips/ar7/memory.c | |||
| @@ -52,7 +52,7 @@ static int __init memsize(void) | |||
| 52 | size <<= 1; | 52 | size <<= 1; |
| 53 | } while (size < (64 << 20)); | 53 | } while (size < (64 << 20)); |
| 54 | 54 | ||
| 55 | writel(tmpaddr, &addr); | 55 | writel((u32)tmpaddr, &addr); |
| 56 | 56 | ||
| 57 | return size; | 57 | return size; |
| 58 | } | 58 | } |
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; |
diff --git a/arch/mips/ar7/prom.c b/arch/mips/ar7/prom.c index a320bceb2f9d..5ad6f1db6567 100644 --- a/arch/mips/ar7/prom.c +++ b/arch/mips/ar7/prom.c | |||
| @@ -144,7 +144,7 @@ static char * __init lookup_psp_var_map(u8 num) | |||
| 144 | { | 144 | { |
| 145 | int i; | 145 | int i; |
| 146 | 146 | ||
| 147 | for (i = 0; i < sizeof(psp_var_map); i++) | 147 | for (i = 0; i < ARRAY_SIZE(psp_var_map); i++) |
| 148 | if (psp_var_map[i].num == num) | 148 | if (psp_var_map[i].num == num) |
| 149 | return psp_var_map[i].value; | 149 | return psp_var_map[i].value; |
| 150 | 150 | ||
diff --git a/arch/mips/ar7/setup.c b/arch/mips/ar7/setup.c index 6ebb5f16d967..39f6b5b96463 100644 --- a/arch/mips/ar7/setup.c +++ b/arch/mips/ar7/setup.c | |||
| @@ -15,7 +15,6 @@ | |||
| 15 | * with this program; if not, write to the Free Software Foundation, Inc., | 15 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 16 | * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. | 16 | * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. |
| 17 | */ | 17 | */ |
| 18 | #include <linux/version.h> | ||
| 19 | #include <linux/init.h> | 18 | #include <linux/init.h> |
| 20 | #include <linux/ioport.h> | 19 | #include <linux/ioport.h> |
| 21 | #include <linux/pm.h> | 20 | #include <linux/pm.h> |
