mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
PCI: altera: Use builtin_platform_driver() to simplify the code
Use the builtin_platform_driver() macro to make the code simpler. Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
This commit is contained in:
parent
1001354ca3
commit
c5d933b122
1 changed files with 1 additions and 5 deletions
|
|
@ -641,8 +641,4 @@ static struct platform_driver altera_pcie_driver = {
|
|||
},
|
||||
};
|
||||
|
||||
static int altera_pcie_init(void)
|
||||
{
|
||||
return platform_driver_register(&altera_pcie_driver);
|
||||
}
|
||||
device_initcall(altera_pcie_init);
|
||||
builtin_platform_driver(altera_pcie_driver);
|
||||
|
|
|
|||
Loading…
Reference in a new issue