From a26d126ee163958cdccdb47b48760b345dfcce7b Mon Sep 17 00:00:00 2001 From: Jan Luebbe Date: Mon, 15 Apr 2013 18:17:30 +0200 Subject: 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 --- common/console.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/console.c b/common/console.c index 402dcf53ec..1518ed885f 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; } -- cgit v1.2.3