9
0
Fork 0

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>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2010-09-23 22:08:35 +02:00 committed by Sascha Hauer
parent 0231b5b3a7
commit 098e9e8f20
1 changed files with 1 additions and 0 deletions

View File

@ -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);