]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
PCI: spear: Use builtin_platform_driver() to simplify the code
authorGeliang Tang <geliangtang@gmail.com>
Wed, 23 Nov 2016 14:55:07 +0000 (22:55 +0800)
committerBjorn Helgaas <helgaas@kernel.org>
Wed, 7 Dec 2016 20:32:30 +0000 (14:32 -0600)
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>
drivers/pci/host/pcie-spear13xx.c

index 3cf197ba7f37baa6dd9613844cd21767e3caef93..dafe8b88d97d8ce192ba8abd44cee9da37efb55e 100644 (file)
@@ -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);