diff options
Diffstat (limited to 'arch/mips/vr41xx')
-rw-r--r-- | arch/mips/vr41xx/common/init.c | 4 | ||||
-rw-r--r-- | arch/mips/vr41xx/nec-cmbvr4133/setup.c | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/arch/mips/vr41xx/common/init.c b/arch/mips/vr41xx/common/init.c index 8d760df686c4..76d4b5ed3fc0 100644 --- a/arch/mips/vr41xx/common/init.c +++ b/arch/mips/vr41xx/common/init.c | |||
@@ -40,6 +40,8 @@ void __init plat_time_init(void) | |||
40 | { | 40 | { |
41 | unsigned long tclock; | 41 | unsigned long tclock; |
42 | 42 | ||
43 | vr41xx_calculate_clock_frequency(); | ||
44 | |||
43 | tclock = vr41xx_get_tclock_frequency(); | 45 | tclock = vr41xx_get_tclock_frequency(); |
44 | if (current_cpu_data.processor_id == PRID_VR4131_REV2_0 || | 46 | if (current_cpu_data.processor_id == PRID_VR4131_REV2_0 || |
45 | current_cpu_data.processor_id == PRID_VR4131_REV2_1) | 47 | current_cpu_data.processor_id == PRID_VR4131_REV2_1) |
@@ -50,8 +52,6 @@ void __init plat_time_init(void) | |||
50 | 52 | ||
51 | void __init plat_mem_setup(void) | 53 | void __init plat_mem_setup(void) |
52 | { | 54 | { |
53 | vr41xx_calculate_clock_frequency(); | ||
54 | |||
55 | iomem_resource_init(); | 55 | iomem_resource_init(); |
56 | } | 56 | } |
57 | 57 | ||
diff --git a/arch/mips/vr41xx/nec-cmbvr4133/setup.c b/arch/mips/vr41xx/nec-cmbvr4133/setup.c index 58e47686b499..7723d2011b08 100644 --- a/arch/mips/vr41xx/nec-cmbvr4133/setup.c +++ b/arch/mips/vr41xx/nec-cmbvr4133/setup.c | |||
@@ -50,7 +50,7 @@ static struct mtd_partition cmbvr4133_mtd_parts[] = { | |||
50 | } | 50 | } |
51 | }; | 51 | }; |
52 | 52 | ||
53 | #define number_partitions (sizeof(cmbvr4133_mtd_parts)/sizeof(struct mtd_partition)) | 53 | #define number_partitions ARRAY_SIZE(cmbvr4133_mtd_parts) |
54 | #endif | 54 | #endif |
55 | 55 | ||
56 | extern void i8259_init(void); | 56 | extern void i8259_init(void); |
@@ -64,8 +64,6 @@ static void __init nec_cmbvr4133_setup(void) | |||
64 | #endif | 64 | #endif |
65 | set_io_port_base(KSEG1ADDR(0x16000000)); | 65 | set_io_port_base(KSEG1ADDR(0x16000000)); |
66 | 66 | ||
67 | mips_machtype = MACH_NEC_CMBVR4133; | ||
68 | |||
69 | #ifdef CONFIG_PCI | 67 | #ifdef CONFIG_PCI |
70 | #ifdef CONFIG_ROCKHOPPER | 68 | #ifdef CONFIG_ROCKHOPPER |
71 | ali_m5229_preinit(); | 69 | ali_m5229_preinit(); |