Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: OMAP2+: Make display related init into device_initcall

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>

+2 -5
-2
arch/arm/mach-omap2/board-generic.c
··· 31 31 static void __init __maybe_unused omap_generic_init(void) 32 32 { 33 33 pdata_quirks_init(omap_dt_match_table); 34 - 35 - omapdss_init_of(); 36 34 omap_soc_device_init(); 37 35 } 38 36
-2
arch/arm/mach-omap2/common.h
··· 352 352 /* SoC specific clock initializer */ 353 353 int omap_clk_init(void); 354 354 355 - int __init omapdss_init_of(void); 356 - 357 355 #endif /* __ASSEMBLER__ */ 358 356 #endif /* __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H */
+2 -1
arch/arm/mach-omap2/display.c
··· 385 385 return NULL; 386 386 } 387 387 388 - int __init omapdss_init_of(void) 388 + static int __init omapdss_init_of(void) 389 389 { 390 390 int r; 391 391 struct device_node *node; ··· 415 415 416 416 return omapdss_init_fbdev(); 417 417 } 418 + omap_device_initcall(omapdss_init_of);