]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
PCI: altera: Use builtin_platform_driver() to simplify the code
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 10 Sep 2016 12:31:01 +0000 (12:31 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 11 Nov 2016 21:18:48 +0000 (15:18 -0600)
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>
drivers/pci/host/pcie-altera.c

index b0ac4dfafa0bbb116bfc80d754ac612c197171be..eefcb38004fe1e617d2305873a29f3f996159769 100644 (file)
@@ -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);