OMAP4: devices: Do not create dmic device if the dtb has been provided
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 2 May 2012 12:23:18 +0000 (15:23 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 8 May 2012 23:53:31 +0000 (16:53 -0700)
If dtb is provided the needed device will be created dynamically.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/devices.c

index 8a489ba687142db817ae61a2ea5f8ff37e45f951..addaa588c8e718793293c030862b216a0cad4228 100644 (file)
@@ -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();