summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/stm32
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2016-11-18 22:12:30 +0800
committerLinus Walleij <linus.walleij@linaro.org>2016-11-22 09:57:39 +0100
commit5b209efa3fe809831e1e043657536cc3353ce5e9 (patch)
tree46c5f5b989c21527b6505189dc2c5725ee134e2b /drivers/pinctrl/stm32
parentb3cde198b17f504643cc1eeffc4623f03326f436 (diff)
pinctrl: stm32: use builtin_platform_driver
Use builtin_platform_driver() helper to simplify the code. Signed-off-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/stm32')
-rw-r--r--drivers/pinctrl/stm32/pinctrl-stm32f429.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32f429.c b/drivers/pinctrl/stm32/pinctrl-stm32f429.c
index e9b15dc0654b..990b867b9625 100644
--- a/drivers/pinctrl/stm32/pinctrl-stm32f429.c
+++ b/drivers/pinctrl/stm32/pinctrl-stm32f429.c
@@ -1584,8 +1584,4 @@ static struct platform_driver stm32f429_pinctrl_driver = {
},
};
-static int __init stm32f429_pinctrl_init(void)
-{
- return platform_driver_register(&stm32f429_pinctrl_driver);
-}
-device_initcall(stm32f429_pinctrl_init);
+builtin_platform_driver(stm32f429_pinctrl_driver);