From: Rabin Vincent Date: Sat, 7 May 2011 16:58:47 +0000 (+0530) Subject: OMAP4: fix return value of omap4_l3_init X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1499f2dbafafe844e485ff8945f60cd9f3d5cbd9;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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: Rabin Vincent Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 7b8558564591..5b8ca680ed93 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c @@ -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); - return PTR_ERR(od); + return IS_ERR(od) ? PTR_ERR(od) : 0; } postcore_initcall(omap4_l3_init);