From: Kefeng Wang Date: Thu, 24 Oct 2019 07:20:03 +0000 (+0800) Subject: riscv: only select serial sifive if TTY is enabled X-Git-Tag: v5.10.7~3631^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc3e8f5d42d5cfac3f7ac9b458c2eeb02e8b1cf7;p=platform%2Fkernel%2Flinux-rpi.git riscv: only select serial sifive if TTY is enabled There is some warning if TTY is not enabled, and lead to build error, only select serial sifive if TTY enabled, and this also makes randconfig happy. Signed-off-by: Kefeng Wang [paul.walmsley@sifive.com: updated to apply] Signed-off-by: Paul Walmsley --- diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs index 634759a..d325b67 100644 --- a/arch/riscv/Kconfig.socs +++ b/arch/riscv/Kconfig.socs @@ -2,8 +2,8 @@ menu "SoC selection" config SOC_SIFIVE bool "SiFive SoCs" - select SERIAL_SIFIVE - select SERIAL_SIFIVE_CONSOLE + select SERIAL_SIFIVE if TTY + select SERIAL_SIFIVE_CONSOLE if TTY select CLK_SIFIVE select CLK_SIFIVE_FU540_PRCI select SIFIVE_PLIC