We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34d9541 commit 6e35d97Copy full SHA for 6e35d97
drivers/tty/serial/earlycon.c
@@ -181,7 +181,7 @@ int __init setup_earlycon(char *buf)
181
if (!buf || !buf[0])
182
return -EINVAL;
183
184
- if (early_con.flags & CON_ENABLED)
+ if (console_is_registered(&early_con))
185
return -EALREADY;
186
187
again:
@@ -253,7 +253,7 @@ int __init of_setup_earlycon(const struct earlycon_id *match,
253
bool big_endian;
254
u64 addr;
255
256
257
258
259
spin_lock_init(&port->lock);
0 commit comments