Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.de
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>

authored by

Uwe Kleine-König and committed by
Thierry Reding
91a69d38 384461ab

+6 -3
+2 -2
drivers/pwm/Kconfig
··· 173 173 will be called pwm-clps711x. 174 174 175 175 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 178 178 help 179 179 Generic PWM framework driver for Crystalcove (CRC) PMIC based PWM 180 180 control.
+4 -1
drivers/pwm/pwm-crc.c
··· 184 184 .name = "crystal_cove_pwm", 185 185 }, 186 186 }; 187 + module_platform_driver(crystalcove_pwm_driver); 187 188 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");