From: Geliang Tang Date: Wed, 23 Nov 2016 15:00:45 +0000 (+0800) Subject: powerpc/83xx/suspend: use builtin_platform_driver X-Git-Tag: v5.15~12232^2^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53a46e8188e0782e84090bd35c01d506d9ffcfaf;p=platform%2Fkernel%2Flinux-starfive.git powerpc/83xx/suspend: use builtin_platform_driver Use builtin_platform_driver() helper to simplify the code. Signed-off-by: Geliang Tang Signed-off-by: Scott Wood --- diff --git a/arch/powerpc/platforms/83xx/suspend.c b/arch/powerpc/platforms/83xx/suspend.c index 24717d0..08f92f6 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);