summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-09-16 13:03:31 +0000
committerStephen Boyd <sboyd@codeaurora.org>2016-09-16 16:05:16 -0700
commitfaabbe50ad518ce493adb20a9bf430daa9d395a4 (patch)
tree97f752ddf4b45d58fe71870dabec999e1b8fa2b3
parent5254223a1216f120a84153dac1d0fde4da999a55 (diff)
downloadop-kernel-dev-faabbe50ad518ce493adb20a9bf430daa9d395a4.zip
op-kernel-dev-faabbe50ad518ce493adb20a9bf430daa9d395a4.tar.gz
clk: zx296718: use builtin_platform_driver to simplify the code
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>
-rw-r--r--drivers/clk/zte/clk-zx296718.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/clk/zte/clk-zx296718.c b/drivers/clk/zte/clk-zx296718.c
index 025e324..b4fe8dd 100644
--- a/drivers/clk/zte/clk-zx296718.c
+++ b/drivers/clk/zte/clk-zx296718.c
@@ -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);
OpenPOWER on IntegriCloud