Skip to content

Commit 91a69d3

Browse files
Uwe Kleine-Königthierryreding
authored andcommitted
pwm: crc: Allow compilation as module and with COMPILE_TEST
The driver compiles just fine as a module. The parent driver's Kconfig symbol already depends on X86 || COMPILE_TEST, so X86 can just be dropped from the dependencies allowing compilation on other platforms than x86. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 384461a commit 91a69d3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

drivers/pwm/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ config PWM_CLPS711X
173173
will be called pwm-clps711x.
174174

175175
config PWM_CRC
176-
bool "Intel Crystalcove (CRC) PWM support"
177-
depends on X86 && INTEL_SOC_PMIC
176+
tristate "Intel Crystalcove (CRC) PWM support"
177+
depends on INTEL_SOC_PMIC
178178
help
179179
Generic PWM framework driver for Crystalcove (CRC) PMIC based PWM
180180
control.

drivers/pwm/pwm-crc.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,5 +184,8 @@ static struct platform_driver crystalcove_pwm_driver = {
184184
.name = "crystal_cove_pwm",
185185
},
186186
};
187+
module_platform_driver(crystalcove_pwm_driver);
187188

188-
builtin_platform_driver(crystalcove_pwm_driver);
189+
MODULE_ALIAS("platform:crystal_cove_pwm");
190+
MODULE_DESCRIPTION("Intel Crystalcove (CRC) PWM support");
191+
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)