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)
commit4a66b1d95ad8baf6ab884a1c64461449b463eb78
tree3ae4a1ceb22c69f787bc30f9fa1b9a45b8b29a56
parent3bcbaf6e08d8d82cde781997bd2c56dda87049b5
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