From: Kefeng Wang Date: Wed, 28 Oct 2020 13:12:30 +0000 (+0800) Subject: clocksource/drivers/riscv: Make RISCV_TIMER depends on RISCV_SBI X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~491^2~432 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=16cf69c25c96b366d77d9ffd2b5fce6394499e32;p=linux.git clocksource/drivers/riscv: Make RISCV_TIMER depends on RISCV_SBI [ Upstream commit ab3105446f1ec4e98fadfc998ee24feec271c16c ] The riscv timer is set via SBI timer call, let's make RISCV_TIMER depends on RISCV_SBI, and it also fixes some build issue. Fixes: d5be89a8d118 ("RISC-V: Resurrect the MMIO timer implementation for M-mode systems") Signed-off-by: Kefeng Wang Reviewed-by: Palmer Dabbelt Acked-by: Palmer Dabbelt Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20201028131230.72907-1-wangkefeng.wang@huawei.com Signed-off-by: Sasha Levin --- diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 68b087bff59c..2be849bb794a 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -654,7 +654,7 @@ config ATCPIT100_TIMER config RISCV_TIMER bool "Timer for the RISC-V platform" if COMPILE_TEST - depends on GENERIC_SCHED_CLOCK && RISCV + depends on GENERIC_SCHED_CLOCK && RISCV && RISCV_SBI select TIMER_PROBE select TIMER_OF help