提交 5fe0a126 编写于 作者: P Peter Ujfalusi 提交者: Tony Lindgren

ARM: OMAP2+: devices: Do not print error when McPDM hwmod lookup fails

It means that the SoC does not have McPDM IP.
Reported-by: NPaul Walmsley <paul@pwsan.com>
Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 f445d053
...@@ -374,10 +374,8 @@ static void __init omap_init_mcpdm(void) ...@@ -374,10 +374,8 @@ static void __init omap_init_mcpdm(void)
struct platform_device *pdev; struct platform_device *pdev;
oh = omap_hwmod_lookup("mcpdm"); oh = omap_hwmod_lookup("mcpdm");
if (!oh) { if (!oh)
printk(KERN_ERR "Could not look up mcpdm hw_mod\n");
return; return;
}
pdev = omap_device_build("omap-mcpdm", -1, oh, NULL, 0); pdev = omap_device_build("omap-mcpdm", -1, oh, NULL, 0);
WARN(IS_ERR(pdev), "Can't build omap_device for omap-mcpdm.\n"); WARN(IS_ERR(pdev), "Can't build omap_device for omap-mcpdm.\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册