linux-yocto/arch/m68k
Finn Thain 2d327cf627 m68k: Don't unregister boot console needlessly
[ Upstream commit 83f672a7f6 ]

When MACH_IS_MVME147, the boot console calls mvme147_scc_write() to
generate console output. That will continue to work even after
debug_cons_nputs() becomes unavailable so there's no need to
unregister the boot console.

Take the opportunity to remove a repeated MACH_IS_* test. Use the
actual .write method (instead of a wrapper) and test that pointer
instead. This means adding an unused parameter to debug_cons_nputs() for
consistency with the struct console API.

early_printk.c is only built when CONFIG_EARLY_PRINTK=y. As of late,
head.S is only built when CONFIG_MMU_MOTOROLA=y. So let the former symbol
depend on the latter, to obviate some ifdef conditionals.

Cc: Daniel Palmer <daniel@0x0f.com>
Fixes: 077b33b9e2 ("m68k: mvme147: Reinstate early console")
Signed-off-by: Finn Thain <fthain@linux-m68k.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/d1d4328e5aa9a87bd8352529ce62b767731c0530.1743467205.git.fthain@linux-m68k.org
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-08-15 16:38:42 +02:00
..
68000
amiga treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
apollo
atari m68k: atari: Use str_on_off() helper in atari_nvram_proc_read() 2025-01-08 18:04:36 +01:00
bvme6000
coldfire m68knommu: updates and fixes for v6.16 2025-06-02 12:16:17 -07:00
configs Networking changes for 6.16. 2025-05-28 15:24:36 -07:00
emu m68k updates for v6.11 2024-07-16 11:30:32 -07:00
fpsp040
hp300 serial: 8250: Move hp300_setup_serial_console() to <linux/serial_8250.h> 2024-01-27 19:01:39 -08:00
ifpsp060
include mm: pgtable: fix pte_swp_exclusive 2025-06-11 14:52:08 -07:00
kernel m68k: Don't unregister boot console needlessly 2025-08-15 16:38:42 +02:00
lib m68k: Use kernel's generic muldi3 libgcc function 2024-12-09 13:29:17 +01:00
mac m68k: mac: Fix macintosh_config for Mac II 2025-04-28 22:16:52 +02:00
math-emu
mm m68k: remove use of page->index 2025-05-31 22:46:06 -07:00
mvme16x m68k: mvme147, mvme16x: Adopt rtc-m48t59 platform driver 2024-11-22 20:59:40 +01:00
mvme147 RTC for 6.13 2024-11-30 11:18:16 -08:00
q40 treewide: Fix wrong singular form of jiffies in comments 2024-09-08 20:47:40 +02:00
sun3 m68k: sun3: Fix DEBUG_MMU_EMU build 2025-02-03 14:32:51 +01:00
sun3x
tools/amiga
virt
install.sh kbuild: Abort make on install failures 2024-07-20 13:34:54 +09:00
Kbuild
Kconfig m68k: coldfire: select PCI_IOMAP for PCI 2025-03-24 15:41:07 +01:00
Kconfig.bus
Kconfig.cpu m68k: Select M68020 as fallback for classic 2024-11-06 15:10:14 +01:00
Kconfig.debug m68k: Don't unregister boot console needlessly 2025-08-15 16:38:42 +02:00
Kconfig.devices
Kconfig.machine m68k: Move Sun 3 into a top-level platform option 2024-11-06 15:10:14 +01:00
Makefile kbuild: use 4-space indentation when followed by conditionals 2024-02-15 06:05:44 +09:00