Skip to content

Commit ebb242d

Browse files
geliangtangmpe
authored andcommitted
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>
1 parent 7184bc2 commit ebb242d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

arch/powerpc/kernel/of_platform.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,6 @@ static struct platform_driver of_pci_phb_driver = {
114114
},
115115
};
116116

117-
static __init int of_pci_phb_init(void)
118-
{
119-
return platform_driver_register(&of_pci_phb_driver);
120-
}
121-
122-
device_initcall(of_pci_phb_init);
117+
builtin_platform_driver(of_pci_phb_driver);
123118

124119
#endif /* CONFIG_PPC_OF_PLATFORM_PCI */

0 commit comments

Comments
 (0)