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:
parent
0231b5b3a7
commit
098e9e8f20
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue