Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1528459
| From | Geliang Tang <geliangtang@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] gpio: vf610: use builtin_platform_driver |
| Date | 2016-11-23 15:50 +0100 |
| Message-ID | <sGH21-69j-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Use builtin_platform_driver() helper to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
drivers/gpio/gpio-vf610.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c
index 3edb09c..521fbe3 100644
--- a/drivers/gpio/gpio-vf610.c
+++ b/drivers/gpio/gpio-vf610.c
@@ -283,8 +283,4 @@ static struct platform_driver vf610_gpio_driver = {
.probe = vf610_gpio_probe,
};
-static int __init gpio_vf610_init(void)
-{
- return platform_driver_register(&vf610_gpio_driver);
-}
-device_initcall(gpio_vf610_init);
+builtin_platform_driver(vf610_gpio_driver);
--
2.9.3
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] gpio: vf610: use builtin_platform_driver Geliang Tang <geliangtang@gmail.com> - 2016-11-23 15:50 +0100 Re: [PATCH] gpio: vf610: use builtin_platform_driver Linus Walleij <linus.walleij@linaro.org> - 2016-11-24 15:20 +0100
csiph-web