summaryrefslogtreecommitdiffstats
path: root/common/console.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-06-11 15:33:49 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-07-21 16:41:47 +0200
commit02ba8a0542f119e02e63a3b4cd6ae5abfd8331f3 (patch)
treec358a8c1f4d1cc5db91d898e6f409f55b22f4127 /common/console.c
parent2f8df2a003a22e8b7397e51ac5f1796db920d579 (diff)
downloadbarebox-02ba8a0542f119e02e63a3b4cd6ae5abfd8331f3.tar.gz
barebox-02ba8a0542f119e02e63a3b4cd6ae5abfd8331f3.tar.xz
get rid of device ids
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/console.c')
-rw-r--r--common/console.c6
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";