linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gpio: intel-mid: use builtin_pci_driver
@ 2016-11-14 12:52 Geliang Tang
  2016-11-14 12:52 ` [PATCH] xen-platform: " Geliang Tang
  2016-11-15  9:35 ` [PATCH] gpio: intel-mid: " Linus Walleij
  0 siblings, 2 replies; 5+ messages in thread
From: Geliang Tang @ 2016-11-14 12:52 UTC (permalink / raw)
  To: David Cohen, Linus Walleij, Alexandre Courbot
  Cc: Geliang Tang, linux-gpio, linux-kernel

Use builtin_pci_driver() helper to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
 drivers/gpio/gpio-intel-mid.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/gpio/gpio-intel-mid.c b/drivers/gpio/gpio-intel-mid.c
index 164de64..a1e44c2 100644
--- a/drivers/gpio/gpio-intel-mid.c
+++ b/drivers/gpio/gpio-intel-mid.c
@@ -421,9 +421,4 @@ static struct pci_driver intel_gpio_driver = {
 	},
 };
 
-static int __init intel_gpio_init(void)
-{
-	return pci_register_driver(&intel_gpio_driver);
-}
-
-device_initcall(intel_gpio_init);
+builtin_pci_driver(intel_gpio_driver);
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-17 17:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-14 12:52 [PATCH] gpio: intel-mid: use builtin_pci_driver Geliang Tang
2016-11-14 12:52 ` [PATCH] xen-platform: " Geliang Tang
2016-11-15  6:41   ` Juergen Gross
2016-11-17 12:49   ` Juergen Gross
2016-11-15  9:35 ` [PATCH] gpio: intel-mid: " Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).