projects
/
GitHub
/
moto-9609
/
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:
1805882
)
powerpc/83xx/suspend: use builtin_platform_driver
author
Geliang Tang
<geliangtang@gmail.com>
Wed, 23 Nov 2016 15:00:45 +0000
(23:00 +0800)
committer
Scott Wood
<oss@buserror.net>
Mon, 5 Dec 2016 01:51:27 +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/platforms/83xx/suspend.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/platforms/83xx/suspend.c
b/arch/powerpc/platforms/83xx/suspend.c
index 24717d060008271adca2a4ebe9337ad9f41502d7..08f92f6ed228f33b56897eb6bb3e5966344f9716 100644
(file)
--- a/
arch/powerpc/platforms/83xx/suspend.c
+++ b/
arch/powerpc/platforms/83xx/suspend.c
@@
-441,8
+441,4
@@
static struct platform_driver pmc_driver = {
.remove = pmc_remove
};
-static int pmc_init(void)
-{
- return platform_driver_register(&pmc_driver);
-}
-device_initcall(pmc_init);
+builtin_platform_driver(pmc_driver);