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:
parent
14ac2e4c42
commit
a26d126ee1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue