From: Paul Cercueil Date: Mon, 24 Oct 2022 20:52:12 +0000 (+0100) Subject: pwm: jz4740: Depend on MACH_INGENIC instead of MIPS X-Git-Tag: v6.6.7~3840^2~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69ba53dac3b16a3b0aa65e7817901e67bc554b32;p=platform%2Fkernel%2Flinux-starfive.git pwm: jz4740: Depend on MACH_INGENIC instead of MIPS The MACH_INGENIC Kconfig option will be selected when building a kernel targeting Ingenic SoCs, but also when compiling a generic MIPS kernel that happens to support Ingenic SoCs. Therefore, if MACH_INGENIC is not set, we know that we're not even trying to build a generic kernel that supports these SoCs, and we can hide the options to compile the SoC-specific drivers. Signed-off-by: Paul Cercueil Acked-by: Uwe Kleine-König Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Thierry Reding --- diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index 1fe420a..cb623d0 100644 --- a/drivers/pwm/Kconfig +++ b/drivers/pwm/Kconfig @@ -282,7 +282,7 @@ config PWM_IQS620A config PWM_JZ4740 tristate "Ingenic JZ47xx PWM support" - depends on MIPS || COMPILE_TEST + depends on MACH_INGENIC || COMPILE_TEST depends on COMMON_CLK && OF select MFD_SYSCON help