[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <fad445bc8162cd07a298b25a18614773c86ec227.1479912870.git.geliangtang@gmail.com>
Date: Wed, 23 Nov 2016 22:55:07 +0800
From: Geliang Tang <geliangtang@...il.com>
To: Pratyush Anand <pratyush.anand@...il.com>,
Bjorn Helgaas <bhelgaas@...gle.com>
Cc: Geliang Tang <geliangtang@...il.com>, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] PCI: spear: use builtin_platform_driver
Use builtin_platform_driver() helper to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@...il.com>
---
drivers/pci/host/pcie-spear13xx.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/pci/host/pcie-spear13xx.c b/drivers/pci/host/pcie-spear13xx.c
index 3cf197b..dafe8b8 100644
--- a/drivers/pci/host/pcie-spear13xx.c
+++ b/drivers/pci/host/pcie-spear13xx.c
@@ -296,8 +296,4 @@ static struct platform_driver spear13xx_pcie_driver = {
},
};
-static int __init spear13xx_pcie_init(void)
-{
- return platform_driver_register(&spear13xx_pcie_driver);
-}
-device_initcall(spear13xx_pcie_init);
+builtin_platform_driver(spear13xx_pcie_driver);
--
2.9.3
Powered by blists - more mailing lists