diff --git a/drivers/of/base.c b/drivers/of/base.c index d8574adf0d62d446c02011970096e74c921ec6f1..bcfd08c2795c784c53e7f3778f13d503863ea905 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -1986,7 +1986,7 @@ bool of_console_check(struct device_node *dn, char *name, int index) { if (!dn || dn != of_stdout || console_set_on_cmdline) return false; - return add_preferred_console(name, index, NULL); + return !add_preferred_console(name, index, NULL); } EXPORT_SYMBOL_GPL(of_console_check);