clk: zx296718: use builtin_platform_driver to simplify the code
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 16 Sep 2016 13:03:31 +0000 (13:03 +0000)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 16 Sep 2016 23:05:16 +0000 (16:05 -0700)
Use the builtin_platform_driver() macro to make the code simpler.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/zte/clk-zx296718.c

index 025e324fab5c8fbe1659dbede124c37d89bcf163..b4fe8ddd7373b88cf5a773e3a00dd7d5cf5ea6fa 100644 (file)
@@ -917,8 +917,4 @@ static struct platform_driver zx_clk_driver = {
        },
 };
 
-static int __init zx_clkc_init(void)
-{
-       return platform_driver_register(&zx_clk_driver);
-}
-device_initcall(zx_clkc_init);
+builtin_platform_driver(zx_clk_driver);