diff options
author | Geliang Tang <geliangtang@gmail.com> | 2016-11-23 23:02:35 +0800 |
---|---|---|
committer | Scott Wood <oss@buserror.net> | 2016-12-04 19:51:44 -0600 |
commit | 16c6cb46a7716c49f5dd44b5a1ccbaa74900eb89 (patch) | |
tree | e713b842954951246b389f3ff8b2d87b51c2e745 /arch/powerpc | |
parent | 53a46e8188e0782e84090bd35c01d506d9ffcfaf (diff) | |
download | linux-16c6cb46a7716c49f5dd44b5a1ccbaa74900eb89.tar.gz linux-16c6cb46a7716c49f5dd44b5a1ccbaa74900eb89.tar.bz2 linux-16c6cb46a7716c49f5dd44b5a1ccbaa74900eb89.zip |
powerpc/fsl_pmc: use builtin_platform_driver
Use builtin_platform_driver() helper to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Scott Wood <oss@buserror.net>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/sysdev/fsl_pmc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/powerpc/sysdev/fsl_pmc.c b/arch/powerpc/sysdev/fsl_pmc.c index 1d6fd7c59fe9..232225e7f863 100644 --- a/arch/powerpc/sysdev/fsl_pmc.c +++ b/arch/powerpc/sysdev/fsl_pmc.c @@ -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); |