[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1531924476-23261-1-git-send-email-phil.edworthy@renesas.com>
Date: Wed, 18 Jul 2018 15:34:36 +0100
From: Phil Edworthy <phil.edworthy@...esas.com>
To: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: Simon Horman <horms@...ge.net.au>, linux-clk@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-renesas-soc@...r.kernel.org,
Phil Edworthy <phil.edworthy@...esas.com>
Subject: [PATCH] clk: renesas: r9a06g032: Avoid needless probe deferring
To avoid all SoC peripheral drivers deferring their probes, both clock and
pinctrl drivers should already be probed. Since the pinctrl driver requires
a clock to access the registers, the clock driver should be probed before
the pinctrl driver.
Therefore, move the clock driver from subsys_initcall to core_initcall.
Signed-off-by: Phil Edworthy <phil.edworthy@...esas.com>
---
drivers/clk/renesas/r9a06g032-clocks.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/clk/renesas/r9a06g032-clocks.c b/drivers/clk/renesas/r9a06g032-clocks.c
index a0b6ecd..b03d616 100644
--- a/drivers/clk/renesas/r9a06g032-clocks.c
+++ b/drivers/clk/renesas/r9a06g032-clocks.c
@@ -877,17 +877,18 @@ static const struct of_device_id r9a06g032_match[] = {
{ }
};
-static struct platform_driver r9a06g032_clock_driver = {
+static struct platform_driver r9a06g032_clock_driver __refdata = {
.driver = {
.name = "renesas,r9a06g032-sysctrl",
.of_match_table = r9a06g032_match,
},
+ .probe = r9a06g032_clocks_probe,
};
static int __init r9a06g032_clocks_init(void)
{
- return platform_driver_probe(&r9a06g032_clock_driver,
- r9a06g032_clocks_probe);
+ platform_driver_register(&r9a06g032_clock_driver);
+ return 0;
}
-subsys_initcall(r9a06g032_clocks_init);
+core_initcall(r9a06g032_clocks_init);
--
2.7.4
Powered by blists - more mailing lists