projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53a46e8
)
powerpc/fsl_pmc: use builtin_platform_driver
author
Geliang Tang
<geliangtang@gmail.com>
Wed, 23 Nov 2016 15:02:35 +0000
(23:02 +0800)
committer
Scott Wood
<oss@buserror.net>
Mon, 5 Dec 2016 01:51:44 +0000
(19:51 -0600)
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>
arch/powerpc/sysdev/fsl_pmc.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/sysdev/fsl_pmc.c
b/arch/powerpc/sysdev/fsl_pmc.c
index 1d6fd7c59fe9f20cdf6f07f2512741a0f59be1d1..232225e7f8638567e0546d48b310fbff65cb8efd 100644
(file)
--- 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);