]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: OMAP2+: Make display related init into device_initcall
authorTony Lindgren <tony@atomide.com>
Mon, 16 Apr 2018 17:27:02 +0000 (10:27 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 30 Apr 2018 19:04:51 +0000 (12:04 -0700)
We can initialize almost everything at normal module_init time with
ti-sysc except for clocks and timers. To prepare for that, let's make
display init into device_initcall as otherwise we'll be calling
of_platform_populate() before the parent has probed.

Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-generic.c
arch/arm/mach-omap2/common.h
arch/arm/mach-omap2/display.c

index 6c61ecc62905a37021979b0f1c3074b98bd532ca..6b4f4975cf7a6c20361e7a7f96b4a69a2e48c3d2 100644 (file)
@@ -31,8 +31,6 @@ static const struct of_device_id omap_dt_match_table[] __initconst = {
 static void __init __maybe_unused omap_generic_init(void)
 {
        pdata_quirks_init(omap_dt_match_table);
-
-       omapdss_init_of();
        omap_soc_device_init();
 }
 
index 75c1a89fab739986a11e971ae64c3dbe416855b3..dff3750e432f56fdceee074af22fa75339d94edd 100644 (file)
@@ -352,7 +352,5 @@ extern int omap_dss_reset(struct omap_hwmod *);
 /* SoC specific clock initializer */
 int omap_clk_init(void);
 
-int __init omapdss_init_of(void);
-
 #endif /* __ASSEMBLER__ */
 #endif /* __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H */
index 480a2b989908b7884f04efba8014c1a75fa2e777..9500b6e2738019a4fb53e50c8150a2972ca8c391 100644 (file)
@@ -385,7 +385,7 @@ static struct device_node * __init omapdss_find_dss_of_node(void)
        return NULL;
 }
 
-int __init omapdss_init_of(void)
+static int __init omapdss_init_of(void)
 {
        int r;
        struct device_node *node;
@@ -415,3 +415,4 @@ int __init omapdss_init_of(void)
 
        return omapdss_init_fbdev();
 }
+omap_device_initcall(omapdss_init_of);