mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
powerpc/of_platform: Use builtin_platform_driver
Use builtin_platform_driver() helper to simplify the code. Signed-off-by: Geliang Tang <geliangtang@gmail.com> Acked-by: Russell Currey <ruscur@russell.cc> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
7184bc2ddb
commit
ebb242d56b
1 changed files with 1 additions and 6 deletions
|
@ -114,11 +114,6 @@ static struct platform_driver of_pci_phb_driver = {
|
|||
},
|
||||
};
|
||||
|
||||
static __init int of_pci_phb_init(void)
|
||||
{
|
||||
return platform_driver_register(&of_pci_phb_driver);
|
||||
}
|
||||
|
||||
device_initcall(of_pci_phb_init);
|
||||
builtin_platform_driver(of_pci_phb_driver);
|
||||
|
||||
#endif /* CONFIG_PPC_OF_PLATFORM_PCI */
|
||||
|
|
Loading…
Reference in a new issue