diff options
author | Geliang Tang <geliangtang@gmail.com> | 2016-11-23 16:00:45 +0100 |
---|---|---|
committer | Scott Wood <oss@buserror.net> | 2016-12-05 02:51:27 +0100 |
commit | 53a46e8188e0782e84090bd35c01d506d9ffcfaf (patch) | |
tree | c02f16663bf9f11c29d18a32d15c3f4b58869f90 /arch/powerpc | |
parent | soc/qman: Handle endianness of h/w descriptors (diff) | |
download | linux-53a46e8188e0782e84090bd35c01d506d9ffcfaf.tar.xz linux-53a46e8188e0782e84090bd35c01d506d9ffcfaf.zip |
powerpc/83xx/suspend: 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/platforms/83xx/suspend.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/83xx/suspend.c b/arch/powerpc/platforms/83xx/suspend.c index 24717d060008..08f92f6ed228 100644 --- 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); |