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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

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

(...)
> +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
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux