[tools] mkimage/getline.h - Mac OS X 10.7 (Lion) fix
[openwrt.git] / target / linux / lantiq / patches-3.0 / 030-lmo-queue.patch
1 --- a/drivers/mtd/maps/lantiq-flash.c
2 +++ b/drivers/mtd/maps/lantiq-flash.c
3 @@ -20,6 +20,8 @@
4 #include <linux/platform_device.h>
5 #include <linux/mtd/physmap.h>
6
7 +#include "../mtdcore.h"
8 +
9 #include <lantiq_soc.h>
10 #include <lantiq_platform.h>
11
12 --- a/arch/mips/lantiq/clk.c
13 +++ b/arch/mips/lantiq/clk.c
14 @@ -100,6 +100,17 @@
15 }
16 EXPORT_SYMBOL(clk_put);
17
18 +int clk_enable(struct clk *clk)
19 +{
20 + /* clocks are always enabled*/
21 + return 0;
22 +}
23 +
24 +void clk_disable(struct clk *clk)
25 +{
26 + /* clocks are always enabled*/
27 +}
28 +
29 static inline u32 ltq_get_counter_resolution(void)
30 {
31 u32 res;
32 --- a/arch/mips/lantiq/irq.c
33 +++ b/arch/mips/lantiq/irq.c
34 @@ -9,6 +9,7 @@
35
36 #include <linux/interrupt.h>
37 #include <linux/ioport.h>
38 +#include <linux/module.h>
39
40 #include <asm/bootinfo.h>
41 #include <asm/irq_cpu.h>
42 @@ -105,6 +106,7 @@
43 ltq_icu_w32(ltq_icu_r32(ier) & ~(1 << irq_nr), ier);
44 ltq_icu_w32((1 << irq_nr), isr);
45 }
46 +EXPORT_SYMBOL(ltq_mask_and_ack_irq);
47
48 static void ltq_ack_irq(struct irq_data *d)
49 {
50 --- a/arch/mips/lantiq/setup.c
51 +++ b/arch/mips/lantiq/setup.c
52 @@ -18,6 +18,8 @@
53 #include "devices.h"
54 #include "prom.h"
55
56 +unsigned long physical_memsize = 0L;
57 +
58 void __init plat_mem_setup(void)
59 {
60 /* assume 16M as default incase uboot fails to pass proper ramsize */
61 @@ -40,8 +42,8 @@
62 }
63 envp++;
64 }
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);
69 }
70
71 static int __init
This page took 0.05615 seconds and 5 git commands to generate.