Skip to contentSkip to conversation

meson: clk: Use builtin_platform_driver to simplify the code

PATCH New Wei Yongjun 2 participants 2 messages Sep 10, 2016 – Sep 14, 2016

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

PATCH 1/1 meson: clk: Use builtin_platform_driver to simplify the code

From: Wei Yongjun <[email protected]>

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

---
 drivers/clk/meson/meson8b.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/clk/meson/meson8b.c +1 -5
index e1d4aa1..aaa3e39 100644
@@ -673,8 +673,4 @@ static struct platform_driver meson8b_driver = {
 	},
 };
 
-static int __init meson8b_clkc_init(void)
-{
-	return platform_driver_register(&meson8b_driver);
-}
-device_initcall(meson8b_clkc_init);
+builtin_platform_driver(meson8b_driver);
Applied
#1 lore raw

PATCH 1/1 meson: clk: Use builtin_platform_driver to simplify the code

Quoted 6 lines · Wei Yongjun

From: Wei Yongjun <[email protected]>

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