[PATCH 2/2] console: set device_d id at -1

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Thu Sep 23 16:08:35 EDT 2010


Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
 common/console.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/common/console.c b/common/console.c
index 889c262..204a08c 100644
--- a/common/console.c
+++ b/common/console.c
@@ -135,6 +135,7 @@ int console_register(struct console_device *newcdev)
 	int first = 0;
 	char ch;
 
+	dev->id = -1;
 	strcpy(dev->name, "cs");
 	dev->type_data = newcdev;
 	register_device(dev);
-- 
1.7.1




More information about the barebox mailing list