]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
pwm: Strengthen dependency for PWM_SIFIVE
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Mon, 27 Jan 2025 10:50:01 +0000 (11:50 +0100)
committerUwe Kleine-König <ukleinek@kernel.org>
Sat, 15 Feb 2025 14:47:47 +0000 (15:47 +0100)
Back when the sifive pwm driver was added there was no symbol for sifive
SoCs yet. Today there is ARCH_SIFIVE however. Let PWM_SIFIVE depend on
that to ensure the driver is only build for platforms where there is a
chance that the hardware is available.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20250127105001.587610-2-u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
drivers/pwm/Kconfig

index ec85f38959362378e739ef62008aeb69347ee074..63beb0010e3e491efaf653d24187037ec0147ee4 100644 (file)
@@ -567,7 +567,7 @@ config PWM_SIFIVE
        tristate "SiFive PWM support"
        depends on OF
        depends on COMMON_CLK && HAS_IOMEM
-       depends on RISCV || COMPILE_TEST
+       depends on ARCH_SIFIVE || COMPILE_TEST
        help
          Generic PWM framework driver for SiFive SoCs.