diff options
| author | John Ogness <john.ogness@linutronix.de> | 2024-08-20 08:35:28 +0206 |
|---|---|---|
| committer | Petr Mladek <pmladek@suse.com> | 2024-08-21 14:56:22 +0200 |
| commit | f37b105faef637cdaff334c0369b451410566ca0 (patch) | |
| tree | b70aaafe73c0fec71a1e5b240135f2fb79e3ce8e /kernel/printk/printk.c | |
| parent | eda25860bf6e71932311f1b5acdf8fc05cd84ff3 (diff) | |
| download | linux-f37b105faef637cdaff334c0369b451410566ca0.tar.gz linux-f37b105faef637cdaff334c0369b451410566ca0.tar.bz2 linux-f37b105faef637cdaff334c0369b451410566ca0.zip | |
printk: nbcon: Consolidate alloc() and init()
Rather than splitting the nbcon allocation and initialization into
two pieces, perform all initialization in nbcon_alloc(). Later,
the initial sequence is calculated and can be explicitly set using
nbcon_seq_force(). This removes the need for the strong rules of
nbcon_init() that even included a BUG_ON().
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20240820063001.36405-3-john.ogness@linutronix.de
Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'kernel/printk/printk.c')
| -rw-r--r-- | kernel/printk/printk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 93c67eb7ca9e..a47017c932be 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -3618,7 +3618,7 @@ void register_console(struct console *newcon) console_init_seq(newcon, bootcon_registered); if (newcon->flags & CON_NBCON) - nbcon_init(newcon); + nbcon_seq_force(newcon, newcon->seq); /* * Put this console in the list - keep the |
