Skip to content

Commit ebc853a

Browse files
geertuesmil
authored andcommitted
pwm: PWM_SIFIVE_PTC should depend on SOC_SIFIVE || SOC_STARFIVE
The SiFive PWM PTC is only present on SiFive and StarFive SoCs. Hence add a dependency on SOC_SIFIVE || SOC_STARFIVE, to prevent asking the user about this driver when configuring a kernel without SiFive or StarFive SoC support. Fixes: 2949bba ("drivers/pwm: Add SiFive PWM PTC driver") Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
1 parent 1001b8e commit ebc853a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/pwm/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ config PWM_SIFIVE
494494

495495
config PWM_SIFIVE_PTC
496496
tristate "SiFive PWM PTC support"
497+
depends on SOC_SIFIVE || SOC_STARFIVE || COMPILE_TEST
497498
depends on OF
498499
depends on COMMON_CLK
499500
help

0 commit comments

Comments
 (0)