PCI: spear: Use builtin_platform_driver() to simplify the code

Use builtin_platform_driver() helper to simplify the code.

Signed-off-by: Geliang Tang <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
This commit is contained in:
Geliang Tang 2016-11-23 22:55:07 +08:00 • committed by Bjorn Helgaas
commit 554d9ec7b4

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