clk: gxbb: use builtin_platform_driver to simplify the code
authorWei Yongjun <weiyj.lk@gmail.com>
Mon, 8 Aug 2016 13:55:20 +0000 (13:55 +0000)
committerStephen Boyd <sboyd@codeaurora.org>
Mon, 15 Aug 2016 21:29:51 +0000 (14:29 -0700)
Use the builtin_platform_driver() macro to make the code simpler.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/meson/gxbb.c

index a4c6684b301998ebfdb131db389b2325a2f825d1..a6afc3ecc2b92996ce3a8385bd1bb936028cb580 100644 (file)
@@ -937,8 +937,4 @@ static struct platform_driver gxbb_driver = {
        },
 };
 
-static int __init gxbb_clkc_init(void)
-{
-       return platform_driver_register(&gxbb_driver);
-}
-device_initcall(gxbb_clkc_init);
+builtin_platform_driver(gxbb_driver);