Skip to content

Commit 3c18000

Browse files
Michal WilczynskiUwe Kleine-König
authored andcommitted
pwm: th1520: Fix missing Kconfig dependencies
The driver fails to build on configurations lacking COMMON_CLK (missing clk::Clk) or HAS_IOMEM (incomplete `pwm_chip` struct on UML). Add dependencies on ARCH_THEAD and HAS_IOMEM, and add COMMON_CLK to ensure correct compilation and platform targeting. Reported-by: Markus Probst <markus.probst@gmail.com> Closes: https://lore.kernel.org/all/a66b337528d700ae92d7940a04c59206e06a8495.camel@posteo.de/ Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202512020957.PqnHfe7C-lkp@intel.com/ Fixes: e03724a ("pwm: Add Rust driver for T-HEAD TH1520 SoC") Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> Link: https://patch.msgid.link/20251209-fix_deps_pwm-v1-1-f7ed8bd1bd3d@samsung.com Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
1 parent fae00ea commit 3c18000

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/pwm/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,9 @@ config PWM_TEGRA
760760

761761
config PWM_TH1520
762762
tristate "TH1520 PWM support"
763+
depends on ARCH_THEAD || COMPILE_TEST
763764
depends on RUST
765+
depends on HAS_IOMEM && COMMON_CLK
764766
select RUST_PWM_ABSTRACTIONS
765767
help
766768
This option enables the driver for the PWM controller found on the

0 commit comments

Comments
 (0)