Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 259bd6ce authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Tony Lindgren
Browse files

OMAP4: devices: Do not create dmic device if the dtb has been provided



If dtb is provided the needed device will be created dynamically.

Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent b3431f5b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -722,12 +722,13 @@ static int __init omap2_init_devices(void)
	 */
	omap_init_audio();
	omap_init_mcpdm();
	omap_init_dmic();
	omap_init_camera();
	omap_init_mbox();
	/* If dtb is there, the devices will be created dynamically */
	if (!of_have_populated_dt())
	if (!of_have_populated_dt()) {
		omap_init_dmic();
		omap_init_mcspi();
	}
	omap_init_pmu();
	omap_hdq_init();
	omap_init_sti();