From: Paul Walmsley Date: Mon, 13 May 2019 21:30:04 +0000 (-0700) Subject: clk: sifive: restrict Kconfig scope for the FU540 PRCI driver X-Git-Tag: v5.4-rc1~737^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7df8c92b4b90a891972fb782b3eaac836efa601;p=platform%2Fkernel%2Flinux-rpi.git clk: sifive: restrict Kconfig scope for the FU540 PRCI driver Restrict Kconfig scope for SiFive clock and reset IP block drivers such that they won't appear on most configurations that are unlikely to support them. This is based on a suggestion from Pavel Machek . Ideally this should be dependent on CONFIG_ARCH_SIFIVE, but since that Kconfig directive does not yet exist, add dependencies on RISCV or COMPILE_TEST for now. Signed-off-by: Paul Walmsley Signed-off-by: Paul Walmsley Reported-by: Pavel Machek Cc: Michael Turquette Acked-by: Pavel Machek Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/sifive/Kconfig b/drivers/clk/sifive/Kconfig index 8db4a3e..f3b4eb9 100644 --- a/drivers/clk/sifive/Kconfig +++ b/drivers/clk/sifive/Kconfig @@ -2,6 +2,7 @@ menuconfig CLK_SIFIVE bool "SiFive SoC driver support" + depends on RISCV || COMPILE_TEST help SoC drivers for SiFive Linux-capable SoCs.