diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2010-09-23 22:08:35 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-09-24 08:46:41 +0200 |
commit | 098e9e8f20fe3a5c97ff01cefa645c334cafbe75 (patch) | |
tree | a18b208b6356ea3ae393dce77e349d4543d6d276 | |
parent | 0231b5b3a7f423f0ef2c064cf019ab7ef2485eda (diff) | |
download | barebox-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>
-rw-r--r-- | common/console.c | 1 |
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); |