From 6e14ab85bd71ec3831169d665c4e79f646a60df8 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/30] 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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c
index bfcccd9..08a0425 100644
--- a/arch/arm/mach-omap2/board-am335xevm.c
+++ b/arch/arm/mach-omap2/board-am335xevm.c
@@ -2152,7 +2152,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.2.5

