提交 77e2fd84 编写于 作者: M Mark A. Greer 提交者: Paul Walmsley

ARM: OMAP2+: Remove unnecessary message when no AES IP is present

Remove the error message that prints when there is no AES IP
present to make it consistent with all the other IPs.

CC: Paul Walmsley <paul@pwsan.com>
Signed-off-by: NMark A. Greer <mgreer@animalcreek.com>
Signed-off-by: NPaul Walmsley <paul@pwsan.com>
上级 14ae5564
...@@ -519,19 +519,15 @@ static void __init omap_init_sham(void) ...@@ -519,19 +519,15 @@ static void __init omap_init_sham(void)
static void __init omap_init_aes(void) static void __init omap_init_aes(void)
{ {
if (cpu_is_omap24xx() || cpu_is_omap34xx()) { struct omap_hwmod *oh;
struct omap_hwmod *oh; struct platform_device *pdev;
struct platform_device *pdev;
oh = omap_hwmod_lookup("aes");
oh = omap_hwmod_lookup("aes"); if (!oh)
if (!oh) return;
return;
pdev = omap_device_build("omap-aes", -1, oh, NULL, 0);
pdev = omap_device_build("omap-aes", -1, oh, NULL, 0); WARN(IS_ERR(pdev), "Can't build omap_device for omap-aes\n");
WARN(IS_ERR(pdev), "Can't build omap_device for omap-aes\n");
} else {
pr_err("%s: platform not supported\n", __func__);
}
} }
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册