Linux GPIO subsystem development
 help / color / mirror / Atom feed
From: Drew Fustini <drew@pdp7.com>
To: Arnd Bergmann <arnd@kernel.org>
Cc: Linus Walleij <linus.walleij@linaro.org>,
	Emil Renner Berthing <emil.renner.berthing@canonical.com>,
	Drew Fustini <dfustini@tenstorrent.com>,
	Arnd Bergmann <arnd@arndb.de>, Andy Shevchenko <andy@kernel.org>,
	linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] pinctrl: th1520:  add a CONFIG_OF dependency
Date: Tue, 15 Oct 2024 10:49:35 -0700	[thread overview]
Message-ID: <Zw6rL508BnZRwBvC@x1> (raw)
In-Reply-To: <20241015151126.2401855-1-arnd@kernel.org>

On Tue, Oct 15, 2024 at 03:11:13PM +0000, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> When compile-testing without CONfIG_OF:
> 
> drivers/pinctrl/pinctrl-th1520.c: In function 'th1520_pinctrl_dt_node_to_map':
> drivers/pinctrl/pinctrl-th1520.c:455:23: error: implicit declaration of function 'pinconf_generic_parse_dt_config'; did you mean 'pinconf_generic_dump_config'? [-Wimplicit-function-declaration]
>   455 |                 ret = pinconf_generic_parse_dt_config(child, pctldev, &configs, &nconfigs);
>       |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>       |                       pinconf_generic_dump_config
> 
> Enforce this using Kconig dependencies.
> 
> Fixes: bed5cd6f8a98 ("pinctrl: Add driver for the T-Head TH1520 SoC")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  drivers/pinctrl/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
> index a6acc27c9a83..3fab5ebeb2e0 100644
> --- a/drivers/pinctrl/Kconfig
> +++ b/drivers/pinctrl/Kconfig
> @@ -564,6 +564,7 @@ config PINCTRL_TPS6594
>  config PINCTRL_TH1520
>  	tristate "Pinctrl driver for the T-Head TH1520 SoC"
>  	depends on ARCH_THEAD || COMPILE_TEST
> +	depends on OF
>  	select GENERIC_PINMUX_FUNCTIONS
>  	select GENERIC_PINCONF
>  	select PINMUX
> -- 
> 2.39.5
> 

Thank you for fixing this.

Acked-by: Drew Fustini <drew@pdp7.com>

  reply	other threads:[~2024-10-15 17:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-15 15:11 [PATCH] pinctrl: th1520: add a CONFIG_OF dependency Arnd Bergmann
2024-10-15 17:49 ` Drew Fustini [this message]
2024-10-15 21:39 ` Linus Walleij

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Zw6rL508BnZRwBvC@x1 \
    --to=drew@pdp7.com \
    --cc=andy@kernel.org \
    --cc=arnd@arndb.de \
    --cc=arnd@kernel.org \
    --cc=dfustini@tenstorrent.com \
    --cc=emil.renner.berthing@canonical.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox