Skip to content

Commit

Permalink
ARM: OMAP2+: devices: Do not print error when DMIC hwmod lookup fails
Browse files Browse the repository at this point in the history
It means that the SoC does not have DMIC IP.

Reported-by: Paul Walmsley <paul@pwsan.com>
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 Jun 12, 2013
1 parent 5fe0a12 commit 6d931cf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/arm/mach-omap2/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,8 @@ static void __init omap_init_dmic(void)
struct platform_device *pdev;

oh = omap_hwmod_lookup("dmic");
if (!oh) {
pr_err("Could not look up dmic hw_mod\n");
if (!oh)
return;
}

pdev = omap_device_build("omap-dmic", -1, oh, NULL, 0);
WARN(IS_ERR(pdev), "Can't build omap_device for omap-dmic.\n");
Expand Down

0 comments on commit 6d931cf

Please sign in to comment.