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>
This commit is contained in:
Geliang Tang 2016-11-23 22:55:07 +08:00 committed by Bjorn Helgaas
parent 1001354ca3
commit 554d9ec7b4
1 changed files with 1 additions and 5 deletions

View 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);