diff options
author | Geliang Tang <geliangtang@gmail.com> | 2016-11-18 22:12:30 +0800 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-11-22 09:57:39 +0100 |
commit | 5b209efa3fe809831e1e043657536cc3353ce5e9 (patch) | |
tree | 46c5f5b989c21527b6505189dc2c5725ee134e2b | |
parent | b3cde198b17f504643cc1eeffc4623f03326f436 (diff) | |
download | op-kernel-dev-5b209efa3fe809831e1e043657536cc3353ce5e9.zip op-kernel-dev-5b209efa3fe809831e1e043657536cc3353ce5e9.tar.gz |
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>
-rw-r--r-- | drivers/pinctrl/stm32/pinctrl-stm32f429.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32f429.c b/drivers/pinctrl/stm32/pinctrl-stm32f429.c index e9b15dc..990b867 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); |