powerpc/83xx/suspend: use builtin_platform_driver
authorGeliang Tang <geliangtang@gmail.com>
Wed, 23 Nov 2016 15:00:45 +0000 (23:00 +0800)
committerScott 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

index 24717d060008271adca2a4ebe9337ad9f41502d7..08f92f6ed228f33b56897eb6bb3e5966344f9716 100644 (file)
@@ -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);