diff options
Diffstat (limited to 'common/console.c')
-rw-r--r-- | common/console.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/console.c b/common/console.c index c97a4f41e5..5036c26e1a 100644 --- a/common/console.c +++ b/common/console.c @@ -120,10 +120,14 @@ postcore_initcall(getc_buffer_flush); int console_register(struct console_device *newcdev) { - struct device_d *dev = newcdev->dev; + struct device_d *dev = &newcdev->class_dev; int first = 0; char ch; + strcpy(dev->name, "cs"); + dev->type_data = newcdev->dev->type_data; + register_device(dev); + if (newcdev->setbrg) { newcdev->baudrate_param.set = console_baudrate_set; newcdev->baudrate_param.name = "baudrate"; |