9
0
Fork 0

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>
This commit is contained in:
Jan Luebbe 2013-04-15 18:17:30 +02:00 committed by Sascha Hauer
parent 14ac2e4c42
commit a26d126ee1
1 changed files with 6 additions and 2 deletions

View File

@ -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;
}