Skip to contentSkip to conversation

clk: gxbb: use builtin_platform_driver to simplify the code

PATCH New Wei Yongjun 2 participants 2 messages Aug 8, 2016 – Aug 15, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: gxbb: use builtin_platform_driver to simplify the code

Use the builtin_platform_driver() macro to make the code simpler.

---
 drivers/clk/meson/gxbb.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/clk/meson/gxbb.c +1 -5
index 8e36d22..b736277 100644
@@ -946,8 +946,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);
Applied
#1 lore raw

PATCH 1/1 clk: gxbb: use builtin_platform_driver to simplify the code

Quoted 4 lines · Wei Yongjun

Use the builtin_platform_driver() macro to make the code simpler.

---

Applied to clk-next

Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project