From: Geliang Tang <geliangtang@gmail.com>
To: Linus Walleij <linus.walleij@linaro.org>,
Alexandre Courbot <gnurou@gmail.com>
Cc: Geliang Tang <geliangtang@gmail.com>,
linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] gpio: etraxfs: use builtin_platform_driver
Date: Fri, 18 Nov 2016 22:12:27 +0800 [thread overview]
Message-ID: <aca97aa85827e34e2c8803ca842fe7f44ed5cdaa.1479456696.git.geliangtang@gmail.com> (raw)
In-Reply-To: <7746cfe83ca3e96ccdf503669db3ace0e3081b7f.1479455552.git.geliangtang@gmail.com>
Use builtin_platform_driver() helper to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
drivers/gpio/gpio-etraxfs.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpio/gpio-etraxfs.c b/drivers/gpio/gpio-etraxfs.c
index 00b022c..a254d5b 100644
--- a/drivers/gpio/gpio-etraxfs.c
+++ b/drivers/gpio/gpio-etraxfs.c
@@ -471,9 +471,4 @@ static struct platform_driver etraxfs_gpio_driver = {
.probe = etraxfs_gpio_probe,
};
-static int __init etraxfs_gpio_init(void)
-{
- return platform_driver_register(&etraxfs_gpio_driver);
-}
-
-device_initcall(etraxfs_gpio_init);
+builtin_platform_driver(etraxfs_gpio_driver);
--
2.9.3
next prev parent reply other threads:[~2016-11-18 14:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-18 14:12 [PATCH] ACPI / PMIC: AXP288: " Geliang Tang
2016-11-18 14:12 ` [PATCH] dmaengine: mv_xor: " Geliang Tang
2016-11-25 6:17 ` Vinod Koul
2016-11-18 14:12 ` Geliang Tang [this message]
2016-11-22 9:14 ` [PATCH] gpio: etraxfs: " Linus Walleij
2016-11-18 14:12 ` [PATCH] gpio: mb86s7x: " Geliang Tang
2016-11-22 9:16 ` Linus Walleij
2016-11-18 14:12 ` [PATCH] pinctrl: mediatek: " Geliang Tang
2016-11-18 23:53 ` Hongzhou Yang
2016-11-22 9:19 ` Linus Walleij
2016-11-18 14:12 ` [PATCH] pinctrl: stm32: " Geliang Tang
2016-11-22 8:58 ` Linus Walleij
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aca97aa85827e34e2c8803ca842fe7f44ed5cdaa.1479456696.git.geliangtang@gmail.com \
--to=geliangtang@gmail.com \
--cc=gnurou@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®