]> git.baikalelectronics.ru Git - kernel.git/commit
x86: dt: Fix OLPC=y/INTEL_CE=n build
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 24 Feb 2011 08:52:42 +0000 (09:52 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 24 Feb 2011 12:01:59 +0000 (13:01 +0100)
commit8dad15fa5851a05cb8b50315628085a9a3b36c5e
tree3ae4a1ceb22c69f787bc30f9fa1b9a45b8b29a56
parent00f63aaf04857c9fd6c5f6da5abdf0a439723d7e
x86: dt: Fix OLPC=y/INTEL_CE=n build

Both OLPC and CE4100 activate CONFIG_OF. OLPC uses PROMTREE while CE
uses FLATTREE. Compiling for OLPC only breaks due to missing flat tree
functions and variables.

Use proper wrappers and provide an empty x86_flattree_get_config()
inline so OF=y FLATTREE=n builds and works.

[ tglx: Make it work with HPET_TIMER=n and make a function static ]

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/prom.h
arch/x86/kernel/devicetree.c