mirror of https://gitee.com/openkylin/linux.git
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:
parent
1001354ca3
commit
554d9ec7b4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue