[lantiq] cleanup basefiles
[openwrt/svn-archive/archive.git] / target / linux / lantiq / patches-3.6 / 0103-MIPS-lantiq-prom-code-invalidated-devicetree-memory.patch
1 From 176aad2b97d2e7d623ef07ee9b68b71c7db8cce4 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Thu, 1 Nov 2012 20:50:52 +0100
4 Subject: [PATCH 103/113] MIPS: lantiq: prom code invalidated devicetree
5 memory
6
7 ---
8 arch/mips/lantiq/prom.c | 5 +----
9 1 file changed, 1 insertion(+), 4 deletions(-)
10
11 diff --git a/arch/mips/lantiq/prom.c b/arch/mips/lantiq/prom.c
12 index 6cfd611..9f9e875 100644
13 --- a/arch/mips/lantiq/prom.c
14 +++ b/arch/mips/lantiq/prom.c
15 @@ -87,9 +87,6 @@ void __init device_tree_init(void)
16 reserve_bootmem(base, size, BOOTMEM_DEFAULT);
17
18 unflatten_device_tree();
19 -
20 - /* free the space reserved for the dt blob */
21 - free_bootmem(base, size);
22 }
23
24 void __init prom_init(void)
25 @@ -119,7 +116,7 @@ int __init plat_of_setup(void)
26 sizeof(of_ids[0].compatible));
27 strncpy(of_ids[1].compatible, "simple-bus",
28 sizeof(of_ids[1].compatible));
29 - return of_platform_bus_probe(NULL, of_ids, NULL);
30 + return of_platform_populate(NULL, of_ids, NULL, NULL);
31 }
32
33 arch_initcall(plat_of_setup);
34 --
35 1.7.10.4
36