summaryrefslogtreecommitdiffstats
path: root/drivers/pci/host/pcie-spear13xx.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2016-11-23 22:55:07 +0800
committerBjorn Helgaas <helgaas@kernel.org>2016-12-07 14:32:30 -0600
commit554d9ec7b4c3f4bd439333135882a873bd734b4e (patch)
tree69a851475f41be4a1e680605b1422f5cbabc4431 /drivers/pci/host/pcie-spear13xx.c
parent1001354ca34179f3db924eb66672442a173147dc (diff)
downloadlinux-554d9ec7b4c3f4bd439333135882a873bd734b4e.tar.gz
linux-554d9ec7b4c3f4bd439333135882a873bd734b4e.tar.xz
PCI: spear: Use builtin_platform_driver() to simplify the code
Use builtin_platform_driver() helper to simplify the code. Signed-off-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/host/pcie-spear13xx.c')
-rw-r--r--drivers/pci/host/pcie-spear13xx.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/pci/host/pcie-spear13xx.c b/drivers/pci/host/pcie-spear13xx.c
index 3cf197ba7f37..dafe8b88d97d 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);