Commit 91a69d38 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Thierry Reding

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/20230804142707.412137-3-u.kleine-koenig@pengutronix.deReviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 384461ab
...@@ -173,8 +173,8 @@ config PWM_CLPS711X ...@@ -173,8 +173,8 @@ config PWM_CLPS711X
will be called pwm-clps711x. will be called pwm-clps711x.
config PWM_CRC config PWM_CRC
bool "Intel Crystalcove (CRC) PWM support" tristate "Intel Crystalcove (CRC) PWM support"
depends on X86 && INTEL_SOC_PMIC depends on INTEL_SOC_PMIC
help help
Generic PWM framework driver for Crystalcove (CRC) PMIC based PWM Generic PWM framework driver for Crystalcove (CRC) PMIC based PWM
control. control.
......
...@@ -184,5 +184,8 @@ static struct platform_driver crystalcove_pwm_driver = { ...@@ -184,5 +184,8 @@ static struct platform_driver crystalcove_pwm_driver = {
.name = "crystal_cove_pwm", .name = "crystal_cove_pwm",
}, },
}; };
module_platform_driver(crystalcove_pwm_driver);
builtin_platform_driver(crystalcove_pwm_driver); MODULE_ALIAS("platform:crystal_cove_pwm");
MODULE_DESCRIPTION("Intel Crystalcove (CRC) PWM support");
MODULE_LICENSE("GPL");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment