projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f1bd54
)
gpio: mb86s7x: use builtin_platform_driver
author
Geliang Tang
<geliangtang@gmail.com>
Fri, 18 Nov 2016 14:12:28 +0000
(22:12 +0800)
committer
Linus Walleij
<linus.walleij@linaro.org>
Tue, 22 Nov 2016 09:16:17 +0000
(10:16 +0100)
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>
drivers/gpio/gpio-mb86s7x.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpio-mb86s7x.c
b/drivers/gpio/gpio-mb86s7x.c
index d55af50e70347958fb7609b3bcb77bb0677d8563..ffb73f688ae13062595b3f83a8730086e800ab03 100644
(file)
--- a/
drivers/gpio/gpio-mb86s7x.c
+++ b/
drivers/gpio/gpio-mb86s7x.c
@@
-217,8
+217,4
@@
static struct platform_driver mb86s70_gpio_driver = {
.remove = mb86s70_gpio_remove,
};
-static int __init mb86s70_gpio_init(void)
-{
- return platform_driver_register(&mb86s70_gpio_driver);
-}
-device_initcall(mb86s70_gpio_init);
+builtin_platform_driver(mb86s70_gpio_driver);