Delay the time of enumeration of fixed clock and make it popssible for ACPI enumeration.
ACPI's namespace is initialized in subsys_initcall stage, so make the fixed clock enumeration in subsys_initcall stage too, and let the AMBA and UART just after it.
Signed-off-by: Hanjun Guo hanjun.guo@linaro.org --- arch/arm64/kernel/setup.c | 2 +- drivers/clk/clk-fixed-rate.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index fe8df38..3d7ed3b 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -308,7 +308,7 @@ static int __init arm64_device_init(void) of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); return 0; } -arch_initcall(arm64_device_init); +subsys_initcall_sync(arm64_device_init);
DEFINE_PER_CPU(struct cpuinfo_arm, cpu_data);
diff --git a/drivers/clk/clk-fixed-rate.c b/drivers/clk/clk-fixed-rate.c index e25c4eb..655c7ab 100644 --- a/drivers/clk/clk-fixed-rate.c +++ b/drivers/clk/clk-fixed-rate.c @@ -179,4 +179,4 @@ static int __init fixed_clk_init(void) * fixed clock will used for AMBA bus, UART and etc, so it should be * initialized early enough. */ -postcore_initcall(fixed_clk_init); +subsys_initcall(fixed_clk_init);