Skip to content

Commit

Permalink
powerpc/fsl_pmc: 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 <[email protected]>
Signed-off-by: Scott Wood <[email protected]>
  • Loading branch information
geliangtang authored and Scott Wood committed Dec 5, 2016
1 parent 53a46e8 commit 16c6cb4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions arch/powerpc/sysdev/fsl_pmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,4 @@ static struct platform_driver pmc_driver = {
.probe = pmc_probe,
};

static int __init pmc_init(void)
{
return platform_driver_register(&pmc_driver);
}
device_initcall(pmc_init);
builtin_platform_driver(pmc_driver);

0 comments on commit 16c6cb4

Please sign in to comment.