summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/fsl_pmc.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2016-11-23 16:02:35 +0100
committerScott Wood <oss@buserror.net>2016-12-05 02:51:44 +0100
commit16c6cb46a7716c49f5dd44b5a1ccbaa74900eb89 (patch)
treee713b842954951246b389f3ff8b2d87b51c2e745 /arch/powerpc/sysdev/fsl_pmc.c
parentpowerpc/83xx/suspend: use builtin_platform_driver (diff)
downloadlinux-16c6cb46a7716c49f5dd44b5a1ccbaa74900eb89.tar.xz
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/sysdev/fsl_pmc.c')
-rw-r--r--arch/powerpc/sysdev/fsl_pmc.c6
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);