Skip to content

Commit

Permalink
pwm: jz4740: Depend on MACH_INGENIC instead of MIPS
Browse files Browse the repository at this point in the history
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 <paul@crapouillou.net>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
  • Loading branch information
Paul Cercueil authored and Thierry Reding committed Nov 29, 2022
1 parent 731c479 commit 69ba53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pwm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69ba53d

Please sign in to comment.