Re: [PATCH 3/5] pwm: jz4740: Force dependency on Device Tree

From: Uwe Kleine-König
Date: Mon Nov 28 2022 - 09:42:31 EST


On Mon, Oct 24, 2022 at 09:52:11PM +0100, Paul Cercueil wrote:
> Ingenic SoCs all require CONFIG_OF, so there is no case where we want to
> use this driver without CONFIG_OF.
>
> Signed-off-by: Paul Cercueil <paul@xxxxxxxxxxxxxxx>

> ---
> drivers/pwm/Kconfig | 2 +-
> drivers/pwm/pwm-jz4740.c | 10 ++++------
> 2 files changed, 5 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
> index 60d13a949bc5..1fe420a45f91 100644
> --- a/drivers/pwm/Kconfig
> +++ b/drivers/pwm/Kconfig
> @@ -283,7 +283,7 @@ config PWM_IQS620A
> config PWM_JZ4740
> tristate "Ingenic JZ47xx PWM support"
> depends on MIPS || COMPILE_TEST
> - depends on COMMON_CLK
> + depends on COMMON_CLK && OF

I think you don't even need to enforce OF here. For the compile-test
case having OF=n should work fine.

Anyhow:

Acked-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>

Best regards
Uwe

--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |

Attachment: signature.asc
Description: PGP signature