Skip to content

Commit

Permalink
OMAP4: devices: Do not create dmic device if the dtb has been provided
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Ujfalusi authored and Tony Lindgren committed May 8, 2012
1 parent b3431f5 commit 259bd6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/arm/mach-omap2/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 259bd6c

Please sign in to comment.