summaryrefslogtreecommitdiffstats
path: root/drivers/clk/meson
diff options
context:
space:
mode:
authorWei Yongjun2016-08-08 15:55:20 +0200
committerStephen Boyd2016-08-15 23:29:51 +0200
commit00746f104420e79efb2dd30467a3546c790b30eb (patch)
tree3615a791d52ac7430d7ca3ad1a830462ce7046ea /drivers/clk/meson
parentclk: mvebu: Add the peripheral clock driver for Armada 3700 (diff)
downloadkernel-qcow2-linux-00746f104420e79efb2dd30467a3546c790b30eb.tar.gz
kernel-qcow2-linux-00746f104420e79efb2dd30467a3546c790b30eb.tar.xz
kernel-qcow2-linux-00746f104420e79efb2dd30467a3546c790b30eb.zip
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>
Diffstat (limited to 'drivers/clk/meson')
-rw-r--r--drivers/clk/meson/gxbb.c6
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);