summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2010-09-23 22:08:35 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-09-24 08:46:41 +0200
commit098e9e8f20fe3a5c97ff01cefa645c334cafbe75 (patch)
treea18b208b6356ea3ae393dce77e349d4543d6d276 /common
parent0231b5b3a7f423f0ef2c064cf019ab7ef2485eda (diff)
downloadbarebox-098e9e8f20fe3a5c97ff01cefa645c334cafbe75.tar.gz
barebox-098e9e8f20fe3a5c97ff01cefa645c334cafbe75.tar.xz
console: set device_d id at -1
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/console.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/console.c b/common/console.c
index 889c26232d..204a08c593 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);