projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ca4746
)
clk: gxbb: use builtin_platform_driver to simplify the code
author
Wei Yongjun
<weiyj.lk@gmail.com>
Mon, 8 Aug 2016 13:55:20 +0000
(13:55 +0000)
committer
Stephen Boyd
<sboyd@codeaurora.org>
Mon, 15 Aug 2016 21:29:51 +0000
(14:29 -0700)
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>
drivers/clk/meson/gxbb.c
patch
|
blob
|
history
diff --git
a/drivers/clk/meson/gxbb.c
b/drivers/clk/meson/gxbb.c
index a4c6684b301998ebfdb131db389b2325a2f825d1..a6afc3ecc2b92996ce3a8385bd1bb936028cb580 100644
(file)
--- 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);