summaryrefslogtreecommitdiffstats
path: root/common/console.c
diff options
context:
space:
mode:
authorJan Luebbe <jlu@pengutronix.de>2013-04-15 18:17:30 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-08-26 10:01:28 +0200
commita26d126ee163958cdccdb47b48760b345dfcce7b (patch)
tree38f30da8bf5efb7572f3eb4497bad8d80991e049 /common/console.c
parent14ac2e4c42fedd945e1378cd1feefeb9e2cc1a0e (diff)
downloadbarebox-a26d126ee163958cdccdb47b48760b345dfcce7b.tar.gz
console: fix console without CONFIG_PARAMETER
If CONFIG_PARAMETER is not set, dev_set_param() does not call the setter function. Call it directly instead in this case. Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Diffstat (limited to 'common/console.c')
-rw-r--r--common/console.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/common/console.c b/common/console.c
index 402dcf5..1518ed8 100644
--- a/common/console.c
+++ b/common/console.c
@@ -171,8 +171,12 @@ int console_register(struct console_device *newcdev)
list_add_tail(&newcdev->list, &console_list);
- if (activate)
- dev_set_param(dev, "active", "ioe");
+ if (activate) {
+ if (IS_ENABLED(CONFIG_PARAMETER))
+ dev_set_param(dev, "active", "ioe");
+ else
+ console_std_set(dev, NULL, "ioe");
+ }
return 0;
}