OpenCloudOS-Kernel/arch/m68k/emu
John Ogness de61a1a3a0 tty: nfcon: use console_is_registered()
Currently CON_ENABLED is being (mis)used to identify if the console
has been registered. This is not reliable because it can be set even
though registration failed or it can be unset, even though the console
is registered. Use console_is_registered() instead.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20221116162152.193147-24-john.ogness@linutronix.de
2022-12-02 11:25:01 +01:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
natfeat.c m68k: Switch to new sys-off handler API 2022-05-19 19:30:30 +02:00
nfblock.c block: remove blk_cleanup_disk 2022-06-28 06:33:15 -06:00
nfcon.c tty: nfcon: use console_is_registered() 2022-12-02 11:25:01 +01:00
nfeth.c arch: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00