]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
clk: COMMON_CLK_RPMI should depend on RISCV
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 30 Sep 2025 14:50:23 +0000 (16:50 +0200)
committerPaul Walmsley <pjw@kernel.org>
Thu, 2 Oct 2025 01:07:43 +0000 (19:07 -0600)
The RISC-V platform management interface (RPMI) is only available on
RISC-V platforms.  Hence add a dependency on RISCV, to prevent asking
the user about this driver when configuring a kernel for a different
architecture.

Fixes: 5ba9f520f41a33c9 ("clk: Add clock driver for the RISC-V RPMI clock service group")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Paul Walmsley <pjw@kernel.org>
drivers/clk/Kconfig

index 4d51fa589c1ee997f387105a28febfd010783372..6fc5ae76b483bf2454a8370694c905e9ce168fc2 100644 (file)
@@ -503,6 +503,7 @@ config COMMON_CLK_SP7021
 
 config COMMON_CLK_RPMI
        tristate "Clock driver based on RISC-V RPMI"
+       depends on RISCV || COMPILE_TEST
        depends on MAILBOX
        default RISCV
        help