lkml.org 
[lkml]   [2016]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v2] pinctrl: Add STM32F746 MCU support
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

\
 
 \ /
  Last update: 2016-07-06 15:21    [W:0.031 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site