diff options
author | Wei Yongjun <weiyj.lk@gmail.com> | 2016-08-08 13:55:20 +0000 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-08-15 14:29:51 -0700 |
commit | 00746f104420e79efb2dd30467a3546c790b30eb (patch) | |
tree | 3615a791d52ac7430d7ca3ad1a830462ce7046ea | |
parent | 8ca4746a78abc39cc0496654068eaaadb0f3c4d0 (diff) |
clk: gxbb: use builtin_platform_driver to simplify the code
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>
-rw-r--r-- | drivers/clk/meson/gxbb.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c index a4c6684b3019..a6afc3ecc2b9 100644 --- a/drivers/clk/meson/gxbb.c +++ b/drivers/clk/meson/gxbb.c @@ -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); |