Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1437684

Re: [PATCH v2] pinctrl: Add STM32F746 MCU support

From Linus Walleij <linus.walleij@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2] pinctrl: Add STM32F746 MCU support
Date 2016-07-06 14:50 +0200
Message-ID <rRUr7-OO-5@gated-at.bofh.it> (permalink)
References <rRRCV-7w1-1@gated-at.bofh.it> <rRRCW-7w1-35@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Jul 6, 2016 at 11:46 AM, Alexandre TORGUE
<alexandre.torgue@st.com> wrote:

> This patch which adds STM32F746 pinctrl and GPIO support, relies on the
> generic STM32 pinctrl driver.
>
> Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
> Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>

(...)
> +static struct platform_driver stm32f746_pinctrl_driver = {
> +       .probe = stm32_pctl_probe,
> +       .driver = {
> +               .name = "stm32f746-pinctrl",
> +               .of_match_table = stm32f746_pctrl_match,
> +       },
> +};
> +
> +static int __init stm32f746_pinctrl_init(void)
> +{
> +       return platform_driver_register(&stm32f746_pinctrl_driver);
> +}
> +device_initcall(stm32f746_pinctrl_init);

Please use builtin_platform_driver() for this.

Yours,
Linus Walleij

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2] Add STM32F746 MCU pinctrl support Alexandre TORGUE <alexandre.torgue@st.com> - 2016-07-06 11:50 +0200
  Re: [PATCH v2] pinctrl: Add STM32F746 MCU support Linus Walleij <linus.walleij@linaro.org> - 2016-07-06 14:50 +0200

csiph-web