blob: a4409d1792da7558cae9d5a4b3f9fade46ee3bf1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
From bb7bebd5eb51467ff920773cc8dd321102b8d528 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Thu, 19 Apr 2012 07:55:55 +0200
Subject: [PATCH 30/79] beaglebone: don't compare undefined characters, it
makes strncomp fail
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
arch/arm/mach-omap2/board-am335xevm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c
index a4e113c..f2f03b6 100644
--- a/arch/arm/mach-omap2/board-am335xevm.c
+++ b/arch/arm/mach-omap2/board-am335xevm.c
@@ -2154,7 +2154,7 @@ static void beaglebone_cape_setup(struct memory_accessor *mem_acc, void *context
beaglebone_lcd3_keys_init(0,0);
}
- if (!strncmp("BB-BONE-VGA-01", cape_config.partnumber, 15)) {
+ if (!strncmp("BB-BONE-VGA-01", cape_config.partnumber, 14)) {
pr_info("BeagleBone cape: initializing VGA cape\n");
dvi_init(0,0);
}
--
1.7.10
|