From 68fec9a751ee943ba1d48e5af8d68c8ff33c66d8 Mon Sep 17 00:00:00 2001 From: Sean McNeil Date: Sat, 28 Feb 2009 14:41:33 +0700 Subject: [PATCH] Use complete hardware name without spaces. Many targets use generic first portions like 'OMAP' Change-Id: I00ba4e64cffc48353c29e409c3c19238024fbd8c --- init/init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init/init.c b/init/init.c index 4d98cc2fd..0667593e1 100755 --- a/init/init.c +++ b/init/init.c @@ -657,8 +657,9 @@ static void get_hardware_name(void) if (x) { x += 2; n = 0; - while (*x && !isspace(*x)) { - hardware[n++] = tolower(*x); + while (*x && *x != '\n') { + if (!isspace(*x)) + hardware[n++] = tolower(*x); x++; if (n == 31) break; }