diff options
Diffstat (limited to 'arch/x86/kernel/olpc.c')
-rw-r--r-- | arch/x86/kernel/olpc.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/x86/kernel/olpc.c b/arch/x86/kernel/olpc.c index 8297160c41b3..156605281f56 100644 --- a/arch/x86/kernel/olpc.c +++ b/arch/x86/kernel/olpc.c | |||
@@ -21,10 +21,7 @@ | |||
21 | #include <asm/geode.h> | 21 | #include <asm/geode.h> |
22 | #include <asm/setup.h> | 22 | #include <asm/setup.h> |
23 | #include <asm/olpc.h> | 23 | #include <asm/olpc.h> |
24 | 24 | #include <asm/olpc_ofw.h> | |
25 | #ifdef CONFIG_OPEN_FIRMWARE | ||
26 | #include <asm/ofw.h> | ||
27 | #endif | ||
28 | 25 | ||
29 | struct olpc_platform_t olpc_platform_info; | 26 | struct olpc_platform_t olpc_platform_info; |
30 | EXPORT_SYMBOL_GPL(olpc_platform_info); | 27 | EXPORT_SYMBOL_GPL(olpc_platform_info); |
@@ -188,14 +185,15 @@ err: | |||
188 | } | 185 | } |
189 | EXPORT_SYMBOL_GPL(olpc_ec_cmd); | 186 | EXPORT_SYMBOL_GPL(olpc_ec_cmd); |
190 | 187 | ||
191 | #ifdef CONFIG_OPEN_FIRMWARE | 188 | #ifdef CONFIG_OLPC_OPENFIRMWARE |
192 | static void __init platform_detect(void) | 189 | static void __init platform_detect(void) |
193 | { | 190 | { |
194 | size_t propsize; | 191 | size_t propsize; |
195 | __be32 rev; | 192 | __be32 rev; |
193 | void *args[] = { NULL, "board-revision-int", &rev, (void *)4 }; | ||
194 | void *res[] = { &propsize }; | ||
196 | 195 | ||
197 | if (ofw("getprop", 4, 1, NULL, "board-revision-int", &rev, 4, | 196 | if (olpc_ofw("getprop", args, res) || propsize != 4) { |
198 | &propsize) || propsize != 4) { | ||
199 | printk(KERN_ERR "ofw: getprop call failed!\n"); | 197 | printk(KERN_ERR "ofw: getprop call failed!\n"); |
200 | rev = cpu_to_be32(0); | 198 | rev = cpu_to_be32(0); |
201 | } | 199 | } |