From: Aaro Koskinen Date: Fri, 18 Mar 2011 23:53:19 +0000 (-0700) Subject: arm: mach-omap2: devices: fix omap3_l3_init() return value X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=36133869c4b5b70e6acf6ff7ce25df526a6d5cae;p=linux-beck.git arm: mach-omap2: devices: fix omap3_l3_init() return value Fix the return value for the successful case. Signed-off-by: Aaro Koskinen Acked-by: Santosh Shilimkar Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 0d2d6a9c303c..d478f53f9084 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c @@ -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); - return PTR_ERR(od); + return IS_ERR(od) ? PTR_ERR(od) : 0; } postcore_initcall(omap3_l3_init);