From: Uwe Kleine-König Date: Mon, 27 Jan 2025 10:50:01 +0000 (+0100) Subject: pwm: Strengthen dependency for PWM_SIFIVE X-Git-Tag: v6.15-rc1~181^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e8af7c083520a7b9b027b2bb282464013a96047d;p=thirdparty%2Flinux.git pwm: Strengthen dependency for PWM_SIFIVE 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 Link: https://lore.kernel.org/r/20250127105001.587610-2-u.kleine-koenig@baylibre.com Signed-off-by: Uwe Kleine-König --- diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index ec85f38959362..63beb0010e3e4 100644 --- a/drivers/pwm/Kconfig +++ b/drivers/pwm/Kconfig @@ -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.