aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/olpc.c
diff options
context:
space:
mode:
authorChris Ball <cjb@laptop.org>2009-02-13 20:56:18 -0500
committerIngo Molnar <mingo@elte.hu>2009-02-14 23:05:25 +0100
commite49590b6dd356f8ef10ba3531a29e5086f6f2e3a (patch)
tree7b24662f1bcad6cfd9fbcef98d59f6f10a9712ba /arch/x86/kernel/olpc.c
parentx86, hpet: fix for LS21 + HPET = boot hang (diff)
downloadlinux-dev-e49590b6dd356f8ef10ba3531a29e5086f6f2e3a.tar.xz
linux-dev-e49590b6dd356f8ef10ba3531a29e5086f6f2e3a.zip
x86, olpc: fix model detection without OFW
Impact: fix "garbled display, laptop is unusable" bug Commit e51a1ac2dfca9ad869471e88f828281db7e810c0 ("x86, olpc: fix endian bug in openfirmware workaround") breaks model comparison on OLPC; the value 0xc2 needs to be scaled up by olpc_board(). The pre-patch version was wrong, but accidentally worked anyway (big-endian 0xc2 is big enough to satisfy all other board revisions, but little endian 0xc2 is not). Signed-off-by: Chris Ball <cjb@laptop.org> Cc: Andrew Morton <akpm@linux-foundation.org> Acked-by: Andres Salomon <dilinger@queued.net> Cc: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/olpc.c')
-rw-r--r--arch/x86/kernel/olpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/olpc.c b/arch/x86/kernel/olpc.c
index 7a13fac63a1f..4006c522adc7 100644
--- a/arch/x86/kernel/olpc.c
+++ b/arch/x86/kernel/olpc.c
@@ -203,7 +203,7 @@ static void __init platform_detect(void)
static void __init platform_detect(void)
{
/* stopgap until OFW support is added to the kernel */
- olpc_platform_info.boardrev = 0xc2;
+ olpc_platform_info.boardrev = olpc_board(0xc2);
}
#endif