summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2016-11-18 15:12:30 +0100
committerLinus Walleij <linus.walleij@linaro.org>2016-11-22 09:57:39 +0100
commit5b209efa3fe809831e1e043657536cc3353ce5e9 (patch)
tree46c5f5b989c21527b6505189dc2c5725ee134e2b /drivers/pinctrl
parentpinctrl: sunxi: Testing the wrong variable (diff)
downloadlinux-5b209efa3fe809831e1e043657536cc3353ce5e9.tar.xz
linux-5b209efa3fe809831e1e043657536cc3353ce5e9.zip
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')
-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);