summaryrefslogtreecommitdiffstats
path: root/drivers/pci/host/pcie-altera.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-09-10 12:31:01 +0000
committerBjorn Helgaas <bhelgaas@google.com>2016-11-11 15:18:48 -0600
commitc5d933b1229c6bb79de3a144d2b33e756f4afd6d (patch)
tree86d982839e55f6246c604f274785a6c055afd343 /drivers/pci/host/pcie-altera.c
parent1001354ca34179f3db924eb66672442a173147dc (diff)
downloadlinux-c5d933b1229c6bb79de3a144d2b33e756f4afd6d.tar.bz2
PCI: altera: Use builtin_platform_driver() to simplify the code
Use the builtin_platform_driver() macro to make the code simpler. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/host/pcie-altera.c')
-rw-r--r--drivers/pci/host/pcie-altera.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c
index b0ac4dfafa0b..eefcb38004fe 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);