[PATCHv2-modified,dev-4.19,1/7] clk: Aspeed: Modify clk-aspeed.c driver probe sequence
diff mbox series

Message ID 7e73f7fb-c9de-5ac4-0d5a-3d24cbed4b5c@yadro.com
State Needs Review / ACK
Headers show
Series
  • Add support for ASPEED SDHCI controller
Related show

Commit Message

Alexander Amelkin April 16, 2019, 10:57 a.m. UTC
From: Ryan Chen <ryanchen.aspeed@gmail.com>

In Aspeed's SoC, all IP clk gating and pll parameter is in scu
controller, before IP driver probe, scu driver need prepare for it.
So buildin_platform_driver to core_initcall.

Signed-off-by: Ryan Chen <ryanchen.aspeed@gmail.com>
---
 drivers/clk/clk-aspeed.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/drivers/clk/clk-aspeed.c b/drivers/clk/clk-aspeed.c
index 5961367..9cddd40 100644
--- a/drivers/clk/clk-aspeed.c
+++ b/drivers/clk/clk-aspeed.c
@@ -573,7 +573,12 @@  static struct platform_driver aspeed_clk_driver = {
 		.suppress_bind_attrs = true,
 	},
 };
-builtin_platform_driver(aspeed_clk_driver);
+
+static int __init aspeed_clk_init(void)
+{
+	return platform_driver_register(&aspeed_clk_driver);
+}
+core_initcall(aspeed_clk_init);
 
 static void __init aspeed_ast2400_cc(struct regmap *map)
 {