aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches-3.6/0103-MIPS-lantiq-prom-code-invalidated-devicetree-memory.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-11-02 20:07:26 +0000
committerJohn Crispin <john@openwrt.org>2012-11-02 20:07:26 +0000
commitdd619da4fc9cd33553ce2deb145ec6321e4c43e2 (patch)
treeb1059a673edde47dee8e9c2dd28d9b4d8eef1c0a /target/linux/lantiq/patches-3.6/0103-MIPS-lantiq-prom-code-invalidated-devicetree-memory.patch
parent736835343c20f3ca495b73d2adf24d240f471676 (diff)
downloadupstream-dd619da4fc9cd33553ce2deb145ec6321e4c43e2.tar.gz
upstream-dd619da4fc9cd33553ce2deb145ec6321e4c43e2.tar.bz2
upstream-dd619da4fc9cd33553ce2deb145ec6321e4c43e2.zip
adds 3.6 files, patches and config
SVN-Revision: 34061
Diffstat (limited to 'target/linux/lantiq/patches-3.6/0103-MIPS-lantiq-prom-code-invalidated-devicetree-memory.patch')
-rw-r--r--target/linux/lantiq/patches-3.6/0103-MIPS-lantiq-prom-code-invalidated-devicetree-memory.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/target/linux/lantiq/patches-3.6/0103-MIPS-lantiq-prom-code-invalidated-devicetree-memory.patch b/target/linux/lantiq/patches-3.6/0103-MIPS-lantiq-prom-code-invalidated-devicetree-memory.patch
new file mode 100644
index 0000000000..0c6d91b03a
--- /dev/null
+++ b/target/linux/lantiq/patches-3.6/0103-MIPS-lantiq-prom-code-invalidated-devicetree-memory.patch
@@ -0,0 +1,36 @@
+From 176aad2b97d2e7d623ef07ee9b68b71c7db8cce4 Mon Sep 17 00:00:00 2001
+From: John Crispin <blogic@openwrt.org>
+Date: Thu, 1 Nov 2012 20:50:52 +0100
+Subject: [PATCH 103/113] MIPS: lantiq: prom code invalidated devicetree
+ memory
+
+---
+ arch/mips/lantiq/prom.c | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/arch/mips/lantiq/prom.c b/arch/mips/lantiq/prom.c
+index 6cfd611..9f9e875 100644
+--- a/arch/mips/lantiq/prom.c
++++ b/arch/mips/lantiq/prom.c
+@@ -87,9 +87,6 @@ void __init device_tree_init(void)
+ reserve_bootmem(base, size, BOOTMEM_DEFAULT);
+
+ unflatten_device_tree();
+-
+- /* free the space reserved for the dt blob */
+- free_bootmem(base, size);
+ }
+
+ void __init prom_init(void)
+@@ -119,7 +116,7 @@ int __init plat_of_setup(void)
+ sizeof(of_ids[0].compatible));
+ strncpy(of_ids[1].compatible, "simple-bus",
+ sizeof(of_ids[1].compatible));
+- return of_platform_bus_probe(NULL, of_ids, NULL);
++ return of_platform_populate(NULL, of_ids, NULL, NULL);
+ }
+
+ arch_initcall(plat_of_setup);
+--
+1.7.10.4
+