1 --- a/drivers/mtd/maps/lantiq-flash.c
2 +++ b/drivers/mtd/maps/lantiq-flash.c
4 #include <linux/platform_device.h>
5 #include <linux/mtd/physmap.h>
7 +#include "../mtdcore.h"
9 #include <lantiq_soc.h>
10 #include <lantiq_platform.h>
12 --- a/arch/mips/lantiq/clk.c
13 +++ b/arch/mips/lantiq/clk.c
16 EXPORT_SYMBOL(clk_put);
18 +int clk_enable(struct clk *clk)
20 + /* clocks are always enabled*/
24 +void clk_disable(struct clk *clk)
26 + /* clocks are always enabled*/
29 static inline u32 ltq_get_counter_resolution(void)
32 --- a/arch/mips/lantiq/irq.c
33 +++ b/arch/mips/lantiq/irq.c
36 #include <linux/interrupt.h>
37 #include <linux/ioport.h>
38 +#include <linux/module.h>
40 #include <asm/bootinfo.h>
41 #include <asm/irq_cpu.h>
43 ltq_icu_w32(ltq_icu_r32(ier) & ~(1 << irq_nr), ier);
44 ltq_icu_w32((1 << irq_nr), isr);
46 +EXPORT_SYMBOL(ltq_mask_and_ack_irq);
48 static void ltq_ack_irq(struct irq_data *d)
50 --- a/arch/mips/lantiq/setup.c
51 +++ b/arch/mips/lantiq/setup.c
56 +unsigned long physical_memsize = 0L;
58 void __init plat_mem_setup(void)
60 /* assume 16M as default incase uboot fails to pass proper ramsize */
65 - memsize *= 1024 * 1024;
66 - add_memory_region(0x00000000, memsize, BOOT_MEM_RAM);
67 + physical_memsize = memsize * 1024 * 1024;
68 + add_memory_region(0x00000000, physical_memsize, BOOT_MEM_RAM);