summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap2-restart.c
diff options
context:
space:
mode:
authorTony Lindgren2015-12-03 20:38:09 +0100
committerTony Lindgren2015-12-03 20:38:09 +0100
commit8dd5ea72b0c0dbcdb5d629247ac7ead49c6a9c58 (patch)
tree6ea1bd2e4432adc033b8edffa44055567d8fa590 /arch/arm/mach-omap2/omap2-restart.c
parentLinux 4.4-rc1 (diff)
downloadkernel-qcow2-linux-8dd5ea72b0c0dbcdb5d629247ac7ead49c6a9c58.tar.gz
kernel-qcow2-linux-8dd5ea72b0c0dbcdb5d629247ac7ead49c6a9c58.tar.xz
kernel-qcow2-linux-8dd5ea72b0c0dbcdb5d629247ac7ead49c6a9c58.zip
ARM: OMAP2+: Change core_initcall levels to postcore_initcall
We want to be able to probe a few selected device drivers before hwmod code populates the clocks in omap_hwmod_setup_all(). This allows us to convert most of the clock drivers into regular device drivers. We only need a few minimal clock drivers early for the system timers to select between the 32KiHz clock and the high frequency oscillator. With these changes, initializing the clock drivers can be just done at core_initcall time with something like: np = of_find_node_by_name(NULL, "plls"); if (np) of_platform_populate(np, NULL, NULL, NULL); And then these clocks will be available for the interconnect code to use. Having most of the clock drivers being regular device drivers allows us to use the nice things like devm_* functions and dev_err and dev_dbg. As an extra bonus, this also allows us to develop the clock drivers for new SoCs as loadable modules initially for cases where we can boot up the system based on the bootloader configured clocks. To do this, let's change the core_initcalls to postcore_initcall under mach-omap2. Cc: Felipe Balbi <balbi@ti.com> Cc: Grygorii Strashko <grygorii.strashko@ti.com> Cc: Paul Walmsley <paul@pwsan.com> Cc: Tero Kristo <t-kristo@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap2-restart.c')
-rw-r--r--arch/arm/mach-omap2/omap2-restart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/omap2-restart.c b/arch/arm/mach-omap2/omap2-restart.c
index d937b2e4040b..497269db882b 100644
--- a/arch/arm/mach-omap2/omap2-restart.c
+++ b/arch/arm/mach-omap2/omap2-restart.c
@@ -62,4 +62,4 @@ static int __init omap2xxx_common_look_up_clks_for_reset(void)
return 0;
}
-omap_core_initcall(omap2xxx_common_look_up_clks_for_reset);
+omap_postcore_initcall(omap2xxx_common_look_up_clks_for_reset);