]> Git Repo - linux.git/commitdiff
PCI: spear: Use builtin_platform_driver() to simplify the code
authorGeliang Tang <[email protected]>
Wed, 23 Nov 2016 14:55:07 +0000 (22:55 +0800)
committerBjorn Helgaas <[email protected]>
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 <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
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);
This page took 0.058111 seconds and 4 git commands to generate.