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

index 1d6fd7c59fe9f20cdf6f07f2512741a0f59be1d1..232225e7f8638567e0546d48b310fbff65cb8efd 100644 (file)
@@ -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);