提交 36133869 编写于 作者: A Aaro Koskinen 提交者: Tony Lindgren

arm: mach-omap2: devices: fix omap3_l3_init() return value

Fix the return value for the successful case.
Signed-off-by: NAaro Koskinen <aaro.koskinen@nokia.com>
Acked-by: NSantosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 05f68940
...@@ -65,7 +65,7 @@ static int __init omap3_l3_init(void) ...@@ -65,7 +65,7 @@ static int __init omap3_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(omap3_l3_init); postcore_initcall(omap3_l3_init);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册