Skip to content

Commit 39f4968

Browse files
rddunlapmpe
authored andcommitted
powerpc: allow PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y
In a randconfig with CONFIG_SERIAL_CPM=m and CONFIG_PPC_EARLY_DEBUG_CPM=y, there is a build error: ERROR: modpost: "udbg_putc" [drivers/tty/serial/cpm_uart/cpm_uart.ko] undefined! Prevent the build error by allowing PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y. Fixes: c374e00 ("[POWERPC] Add early debug console for CPM serial ports.") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Reviewed-by: Pali Rohár <pali@kernel.org> Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230701054714.30512-1-rdunlap@infradead.org
1 parent d8b0bd5 commit 39f4968

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/powerpc/Kconfig.debug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ config PPC_EARLY_DEBUG_40x
240240

241241
config PPC_EARLY_DEBUG_CPM
242242
bool "Early serial debugging for Freescale CPM-based serial ports"
243-
depends on SERIAL_CPM
243+
depends on SERIAL_CPM=y
244244
help
245245
Select this to enable early debugging for Freescale chips
246246
using a CPM-based serial port. This assumes that the bootwrapper

0 commit comments

Comments
 (0)