提交 1499f2db 编写于 作者: R Rabin Vincent 提交者: Tony Lindgren

OMAP4: fix return value of omap4_l3_init

Don't PTR_ERR() a non-error pointer:

 initcall omap4_l3_init+0x0/0xdc returned -544980480 after 0 usecs
 initcall omap4_l3_init+0x0/0xdc returned with error code -544980480
Signed-off-by: NRabin Vincent <rabin@rab.in>
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 50b4860d
...@@ -97,7 +97,7 @@ static int __init omap4_l3_init(void) ...@@ -97,7 +97,7 @@ static int __init omap4_l3_init(void)
WARN(IS_ERR(od), "could not build omap_device for %s\n", oh_name); WARN(IS_ERR(od), "could not build omap_device for %s\n", oh_name);
return PTR_ERR(od); return IS_ERR(od) ? PTR_ERR(od) : 0;
} }
postcore_initcall(omap4_l3_init); postcore_initcall(omap4_l3_init);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册