If dtb is provided of will create the needed devices dynamically so there is no need to create the platform device for DMIC here.
Signed-off-by: Peter Ujfalusi peter.ujfalusi@ti.com --- arch/arm/mach-omap2/devices.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 35d5dff..d7ca473 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c @@ -344,6 +344,10 @@ static void omap_init_dmic(void) struct omap_hwmod *oh; struct platform_device *pdev;
+ /* If dtb is there, the devices will be created dynamically */ + if (of_have_populated_dt()) + return; + oh = omap_hwmod_lookup("dmic"); if (!oh) { printk(KERN_ERR "Could not look up mcpdm hw_mod\n");