浏览代码

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>
Wei Yongjun 9 年之前
父节点
当前提交
00746f1044
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      drivers/clk/meson/gxbb.c

+ 1 - 5
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);