summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2015-01-13 07:11:49 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-01-13 08:48:59 +0100
commita1a582f4e0d51311b3a2fac9b7221be4b20fb9de (patch)
tree4022bd8d5ebd19464cc945bef1cb6f557c0ebc52 /common
parent6570288f2d97d3a3dceb3e631b4e4f4305352dc8 (diff)
downloadbarebox-a1a582f4e0d51311b3a2fac9b7221be4b20fb9de.tar.gz
barebox-a1a582f4e0d51311b3a2fac9b7221be4b20fb9de.tar.xz
console: allow to specify the device id
so we can use dynamic number id with specific devname Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/console.c b/common/console.c
index c092621aa1..0c32f06b93 100644
--- a/common/console.c
+++ b/common/console.c
@@ -194,7 +194,7 @@ int console_register(struct console_device *newcdev)
console_init_early();
if (newcdev->devname) {
- dev->id = DEVICE_ID_SINGLE;
+ dev->id = newcdev->devid;
strcpy(dev->name, newcdev->devname);
} else {
dev->id = DEVICE_ID_DYNAMIC;