linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI: altera: use builtin_platform_driver
@ 2016-11-23 14:52 Geliang Tang
  2016-11-25  2:25 ` Ley Foon Tan
  2016-12-07 20:32 ` Bjorn Helgaas
  0 siblings, 2 replies; 3+ messages in thread
From: Geliang Tang @ 2016-11-23 14:52 UTC (permalink / raw)
  To: Ley Foon Tan, Bjorn Helgaas; +Cc: Geliang Tang, rfi, linux-pci, linux-kernel

Use builtin_platform_driver() helper to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
 drivers/pci/host/pcie-altera.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c
index b0ac4df..eefcb38 100644
--- a/drivers/pci/host/pcie-altera.c
+++ b/drivers/pci/host/pcie-altera.c
@@ -641,8 +641,4 @@ static struct platform_driver altera_pcie_driver = {
 	},
 };
 
-static int altera_pcie_init(void)
-{
-	return platform_driver_register(&altera_pcie_driver);
-}
-device_initcall(altera_pcie_init);
+builtin_platform_driver(altera_pcie_driver);
-- 
2.9.3

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

end of thread, other threads:[~2016-12-07 20:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-23 14:52 [PATCH] PCI: altera: use builtin_platform_driver Geliang Tang
2016-11-25  2:25 ` Ley Foon Tan
2016-12-07 20:32 ` Bjorn Helgaas

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).