summaryrefslogtreecommitdiff
path: root/packages/linux/linux-2.6.18/atstk1000-board-fix-fbmem-setup.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-09-29 12:07:52 +0000
committerKoen Kooi <koen@openembedded.org>2007-09-29 12:07:52 +0000
commitf3bb705985be24cb0cff1ee99e6d3b39b45776e2 (patch)
tree5ae683b9c88af185479904346a3b347a0e7554a8 /packages/linux/linux-2.6.18/atstk1000-board-fix-fbmem-setup.patch
parentd1955257f59b4db7bc6c4cce1c3fa56acbf5959f (diff)
parent62b0c096d11002dfef70a76e4d90b1e3d8fb2f67 (diff)
propagate from branch 'org.openembedded.dev' (head 6a695cd00cc23cf7fb290f5fa3b5fa575ea46578)
to branch 'org.openembedded.dev.avr32' (head ab2172a655ff7181e144405e039e232f8b093d5b)
Diffstat (limited to 'packages/linux/linux-2.6.18/atstk1000-board-fix-fbmem-setup.patch')
-rw-r--r--packages/linux/linux-2.6.18/atstk1000-board-fix-fbmem-setup.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/linux/linux-2.6.18/atstk1000-board-fix-fbmem-setup.patch b/packages/linux/linux-2.6.18/atstk1000-board-fix-fbmem-setup.patch
new file mode 100644
index 0000000000..185f7deb93
--- /dev/null
+++ b/packages/linux/linux-2.6.18/atstk1000-board-fix-fbmem-setup.patch
@@ -0,0 +1,14 @@
+Index: linux-2.6.18/arch/avr32/boards/atstk1000/setup.c
+===================================================================
+--- linux-2.6.18.orig/arch/avr32/boards/atstk1000/setup.c 2007-01-11 11:30:42.000000000 +0100
++++ linux-2.6.18/arch/avr32/boards/atstk1000/setup.c 2007-01-11 13:27:00.000000000 +0100
+@@ -37,7 +37,8 @@
+
+ for_each_online_pgdat(pgdat) {
+ if (fbmem_start >= pgdat->bdata->node_boot_start
+- && fbmem_start <= pgdat->bdata->node_low_pfn)
++ && fbmem_start <= (pgdat->bdata->node_low_pfn
++ * PAGE_SIZE))
+ reserve_bootmem_node(pgdat, fbmem_start,
+ fbmem_size);
+ }