Re: [PATCH v2] pinctrl: Add STM32F746 MCU support
From: Linus Walleij <hidden>
Date: 2016-07-06 12:43:16
Also in:
linux-arm-kernel, linux-gpio, lkml
From: Linus Walleij <hidden>
Date: 2016-07-06 12:43:16
Also in:
linux-arm-kernel, linux-gpio, lkml
On Wed, Jul 6, 2016 at 11:46 AM, Alexandre TORGUE [off-list ref] wrote:
This patch which adds STM32F746 pinctrl and GPIO support, relies on the generic STM32 pinctrl driver. Signed-off-by: Maxime Coquelin <redacted> Signed-off-by: Alexandre TORGUE <redacted>
(...)
+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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html