Skip to content

Commit

Permalink
powerpc/of_platform: Use builtin_platform_driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geliang Tang authored and Michael Ellerman committed Nov 25, 2016
1 parent 7184bc2 commit ebb242d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions arch/powerpc/kernel/of_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit ebb242d

Please sign in to comment.